akiko19191 commited on
Commit
0d79120
·
verified ·
1 Parent(s): 2e51933

Update tests.py

Browse files
Files changed (1) hide show
  1. tests.py +2 -2
tests.py CHANGED
@@ -241,7 +241,7 @@ def run_code(python_packages:str,filename: str, code: str,start_cmd:str,forever_
241
  command="pip install"
242
  if package_names != "" or package_names != " ":
243
  stdot=run(
244
- f"{command} --break-system-packages {package_names}", timeout_sec=300, 'false'
245
  )
246
  download_all_files("https://opengpt-4ik5.onrender.com", "/upload", "/app/code_interpreter")
247
  transfer_files()
@@ -301,7 +301,7 @@ def install_python_packages(python_packages:str) -> dict:
301
  return
302
 
303
  stdot=run(
304
- f"{command} --break-system-packages {package_names}", timeout_sec=300, 'false'
305
  )
306
 
307
  return {"stdout":stdot,"info":"Ran package installation command"}
 
241
  command="pip install"
242
  if package_names != "" or package_names != " ":
243
  stdot=run(
244
+ f"{command} --break-system-packages {package_names}", timeout_sec=300,forever_cmd= 'false'
245
  )
246
  download_all_files("https://opengpt-4ik5.onrender.com", "/upload", "/app/code_interpreter")
247
  transfer_files()
 
301
  return
302
 
303
  stdot=run(
304
+ f"{command} --break-system-packages {package_names}", timeout_sec=300, forever_cmd= 'false'
305
  )
306
 
307
  return {"stdout":stdot,"info":"Ran package installation command"}