Update tests.py
Browse files
tests.py
CHANGED
|
@@ -188,13 +188,13 @@ def analyse_images(imagepath,query) -> dict:
|
|
| 188 |
# return {"Output":str(response.text)}
|
| 189 |
|
| 190 |
@mcp.tool()
|
| 191 |
-
def create_code_files(filename: str, code
|
| 192 |
"""Create code files by passing the the filename as well the entire code to write.The file is created by default in the /app/code_interpreter directory.Note:All user uploaded files that you might need to work upon are stored in the /app/code_interpreter directory."""
|
| 193 |
global destination_dir
|
| 194 |
transfer_files()
|
| 195 |
transfer_files2()
|
| 196 |
f = open(os.path.join(destination_dir, filename), "w")
|
| 197 |
-
f.write(code)
|
| 198 |
f.close()
|
| 199 |
return {"info":"task completed. The referenced code files were created successfully. "}
|
| 200 |
|
|
|
|
| 188 |
# return {"Output":str(response.text)}
|
| 189 |
|
| 190 |
@mcp.tool()
|
| 191 |
+
def create_code_files(filename: str, code) -> dict:
|
| 192 |
"""Create code files by passing the the filename as well the entire code to write.The file is created by default in the /app/code_interpreter directory.Note:All user uploaded files that you might need to work upon are stored in the /app/code_interpreter directory."""
|
| 193 |
global destination_dir
|
| 194 |
transfer_files()
|
| 195 |
transfer_files2()
|
| 196 |
f = open(os.path.join(destination_dir, filename), "w")
|
| 197 |
+
f.write(str(code))
|
| 198 |
f.close()
|
| 199 |
return {"info":"task completed. The referenced code files were created successfully. "}
|
| 200 |
|