akiko19191 commited on
Commit
8be4679
·
verified ·
1 Parent(s): ba909ab

Update tests.py

Browse files
Files changed (1) hide show
  1. tests.py +3 -3
tests.py CHANGED
@@ -247,7 +247,7 @@ def run_code(python_packages:str,filename: str, code: str,start_cmd:str,forever_
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()
252
  f = open(os.path.join(destination_dir, filename), "w")
253
  f.write(code)
@@ -288,9 +288,9 @@ def run_code_files(start_cmd:str) -> dict:
288
  @mcp.tool()
289
  def run_shell_command(cmd:str) -> dict:
290
  """(cmd:Example- mkdir test.By default , the command is run inside the /app/code_interpreter/ directory.).Remember, the code_interpreter is running on **alpine linux** , so write commands accordingly.Eg-sudo does not work and is not required.."""
291
- run(cmd, 300)
292
  transfer_files()
293
- return {"output":stdout}
294
 
295
 
296
 
 
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()
252
  f = open(os.path.join(destination_dir, filename), "w")
253
  f.write(code)
 
288
  @mcp.tool()
289
  def run_shell_command(cmd:str) -> dict:
290
  """(cmd:Example- mkdir test.By default , the command is run inside the /app/code_interpreter/ directory.).Remember, the code_interpreter is running on **alpine linux** , so write commands accordingly.Eg-sudo does not work and is not required.."""
291
+ output=run(cmd, 300)
292
  transfer_files()
293
+ return {"output":output}
294
 
295
 
296