Spaces:
Running
Running
Update tests.py
Browse files
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"}
|