Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 34 |
agent = BasicAgent()
|
| 35 |
except Exception as e:
|
| 36 |
print(f"Error instantiating agent: {e}")
|
| 37 |
-
return f"Error initializing agent: {
|
| 38 |
# 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)
|
| 39 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 40 |
print(agent_code)
|
|
|
|
| 34 |
agent = BasicAgent()
|
| 35 |
except Exception as e:
|
| 36 |
print(f"Error instantiating agent: {e}")
|
| 37 |
+
return f"Error initializing agent: {space_id}", None
|
| 38 |
# 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)
|
| 39 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 40 |
print(agent_code)
|