Spaces:
Building
Building
Update tests.py
Browse files
tests.py
CHANGED
@@ -264,7 +264,7 @@ def run_code(python_packages:str,filename: str, code: str,start_cmd:str,forever_
|
|
264 |
|
265 |
|
266 |
@mcp.tool()
|
267 |
-
def run_code_files(start_cmd:str,forever_cmd:bool)
|
268 |
"""(start_cmd:Example- python /app/code_interpreter/app.py or bash /app/code_interpreter/app.py).The files must be inside the /app/code_interpreter directory.forever_cmd:If True, the command will run indefinitely.Set to True, when runnig a website/server. If False, the command will time out after 300 second and the result will be returned."""
|
269 |
global files_list
|
270 |
|
|
|
264 |
|
265 |
|
266 |
@mcp.tool()
|
267 |
+
def run_code_files(start_cmd:str,forever_cmd:bool) -> dict:
|
268 |
"""(start_cmd:Example- python /app/code_interpreter/app.py or bash /app/code_interpreter/app.py).The files must be inside the /app/code_interpreter directory.forever_cmd:If True, the command will run indefinitely.Set to True, when runnig a website/server. If False, the command will time out after 300 second and the result will be returned."""
|
269 |
global files_list
|
270 |
|