I've modified config.py,this is the error:ValueError: Request failed with status code 404
this is my test code:
from vision_agent.models import AgentMessage
import vision_agent as va
import matplotlib.pyplot as plt
from vision_agent.agent import OllamaVisionAgentCoder
agent = OllamaVisionAgentCoder()
Add your prompt (content) and image file (media)
code_context = agent.generate_code(
[
{
"role" : "user",
"content" : "count how many people in the image",
"media" : ["people.jpg"]
}
]
)
Write the output to a file
with open("generated_code.py", "w") as f:
f.write(code_context.code + "\n" + code_context.test)
I've modified config.py,this is the error:ValueError: Request failed with status code 404
this is my test code:
from vision_agent.models import AgentMessage
import vision_agent as va
import matplotlib.pyplot as plt
from vision_agent.agent import OllamaVisionAgentCoder
agent = OllamaVisionAgentCoder()
Add your prompt (content) and image file (media)
code_context = agent.generate_code(
[
{
"role" : "user",
"content" : "count how many people in the image",
"media" : ["people.jpg"]
}
]
)
Write the output to a file
with open("generated_code.py", "w") as f:
f.write(code_context.code + "\n" + code_context.test)