akiko19191 commited on
Commit
164acd8
·
verified ·
1 Parent(s): a087d7f

Update tests.py

Browse files
Files changed (1) hide show
  1. tests.py +2 -2
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: str) -> 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(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