-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use code interpreter to save gpt generated documents such as csv files to local disk #879
Comments
A simple solution I can see is to not use docker (set Check "work_dir (Optional, str): The working directory for the code execution. If None, a default working directory will be used. The default working directory is the "extensions" directory under "path_to_autogen"." |
|
@lihui123456 can you share a snippet of your code? Which agent class are you using? |
@gagb here is my code: user_proxy = UserProxyAgent( If I execute the above code, the path of the generated CSV file is /mnt/data/XXX.csv, as if in a virtual environment, how can I use the file generated by gpt's assistant to locally or download the file generated in the virtual environment? thank you. |
Closing in lieu of #916 |
* handle num_samples=-1 * comment on num_samples=0
I have a requirement to generate an excel table according to some known data and save the table to the local disk, I can not save to the local disk, it is always saved in the directory( /mnt/data/XXX.csv), I guess it should be the directory of the virtual environment. I have an idea to execute the code generated by the code interpreter locally, but I don't know how to execute it or save the file. Is there any other simpler solution?
The text was updated successfully, but these errors were encountered: