Spaces:
Sleeping
Sleeping
Remove redundant agent assignment
Browse files
app.py
CHANGED
|
@@ -64,11 +64,6 @@ async def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 64 |
submit_url = f"{api_url}/submit"
|
| 65 |
|
| 66 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 67 |
-
try:
|
| 68 |
-
agent = agent
|
| 69 |
-
except Exception as e:
|
| 70 |
-
print(f"Error instantiating agent: {e}")
|
| 71 |
-
return f"Error initializing agent: {e}", None
|
| 72 |
# In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
|
| 73 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 74 |
print(agent_code)
|
|
|
|
| 64 |
submit_url = f"{api_url}/submit"
|
| 65 |
|
| 66 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
# In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
|
| 68 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 69 |
print(agent_code)
|