Skip to content

Agent Chat with Multimodal Models: GPT-4V run Application 2: Figure Creator error :FileNotFoundError: [Errno 2] No such file or directory: 'result.jpg'[Issue]:  #968

Closed
@scortLi

Description

Describe the issue

i run at google colab here is agent reply:
User (to Figure Creator~):

读取下面csv中数据绘制图表:

https://raw.githubusercontent.com/vega/vega/main/docs/data/seattle-weather.csv

/content/doc/001.csv.


Commander (to Coder):

读取下面csv中数据绘制图表:

https://raw.githubusercontent.com/vega/vega/main/docs/data/seattle-weather.csv

/content/doc/001.csv.


Coder (to Commander):

To achieve this, we'll follow these steps:

  1. First, we'll

Commander (to Coder):

I apologize, but as an AI language model running in a text-based environment,


Coder (to Commander):

No problem. The task will be to:

  1. Download the CSV file from

Commander (to Coder):

I'm sorry for the confusion earlier. As an AI developed by OpenAI,


Coder (to Commander):

Understood. Here are the steps we will take to accomplish this task:

1


Commander (to Coder):

I apologize for the earlier confusion. As an AI developed by OpenAI, I


Coder (to Commander):

No worries at all. We will first need to download the CSV file. We


Commander (to Coder):

I'm sorry for any confusion, but I can't directly download files or run


Coder (to Commander):

Understood. Since you are able to run Python code, we will write a


Commander (to Coder):

I must clarify that I don't have the capability to execute code or access external


Coder (to Commander):

That's clear now. Since you can execute code, we will proceed directly by


Commander (to Coder):

I apologize for the confusion, but as a text-based model, I am not


Coder (to Commander):

I understand now. Since you can execute Python code, let's write a Python


Commander (to Coder):

Sure, I can provide you with an example in Python that would accomplish this using


Coder (to Commander):

Great. Here is a complete Python code that downloads the CSV using pandas and plots


Commander (to Coder):

It seems some part of your message may have not come through correctly. If you


Coder (to Commander):

I apologize for any confusion. Let me provide you with a Python code snippet that


Commander (to Coder):

If you are looking for a Python code to download a CSV file and create a


Coder (to Commander):

Correct. Here is a Python code example using pandas and matplotlib to download the CSV


Commander (to Coder):

Again, I apologize for the confusion. Please provide the Python code you are referring


Coder (to Commander):

Certainly! We will use the Python libraries pandas for data manipulation and



FileNotFoundError Traceback (most recent call last)
in <cell line: 28>()
26 )
27
---> 28 user_proxy.initiate_chat(creator, message="""
29 读取下面csv中数据绘制图表:
30 # https://raw.githubusercontent.com/vega/vega/main/docs/data/seattle-weather.csv

5 frames
/usr/local/lib/python3.10/dist-packages/PIL/Image.py in open(fp, mode, formats)
3225
3226 if filename:
-> 3227 fp = builtins.open(filename, "rb")
3228 exclusive_fp = True
3229

FileNotFoundError: [Errno 2] No such file or directory: 'result.jpg'

Steps to reproduce

No response

Screenshots and logs

No response

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebasehelp wantedExtra attention is neededmultimodallanguage + vision, speech etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions