Spaces:
Running
How did you submit?
Hi fisherman611,
Can you help me? My agent works, but I haven't been able to figure out how to submit it using the API. I am starting to stress as the due date is tomorrow. My agent is here: https://huggingface.co/spaces/jcleee/First_agent_template/tree/main. Any insight? Thank you so much.
Hi
@jcleee
,
I’ve had a look at your code, and I’d suggest refactoring your app.py file by splitting it into two separate files:
+, agent.py: This file should contain your agent logic (excluding anything related to Gradio).
+, app.py: This file should handle the Gradio interface (you should use template of Hugging Face Agents Course in this link: https://huggingface.co/spaces/agents-course/Final_Assignment_Template) and import your agent from agent.py.
Hope this helps!