Spaces:
Running
Running
Update tests.py
Browse files
tests.py
CHANGED
@@ -240,12 +240,12 @@ def run_code(python_packages:str,filename: str, code: str,start_cmd:str,forever_
|
|
240 |
global files_list
|
241 |
package_names = python_packages.strip()
|
242 |
command="pip install"
|
243 |
-
if not package_names:
|
244 |
-
|
245 |
-
else:
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
global destination_dir
|
250 |
download_all_files("https://opengpt-4ik5.onrender.com", "/upload", "/app/code_interpreter")
|
251 |
transfer_files()
|
|
|
240 |
global files_list
|
241 |
package_names = python_packages.strip()
|
242 |
command="pip install"
|
243 |
+
# if not package_names:
|
244 |
+
# pass
|
245 |
+
# else:
|
246 |
+
# run(
|
247 |
+
# f"{command} --break-system-packages {package_names}", timeout_sec=300
|
248 |
+
# )
|
249 |
global destination_dir
|
250 |
download_all_files("https://opengpt-4ik5.onrender.com", "/upload", "/app/code_interpreter")
|
251 |
transfer_files()
|