Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ class BasicAgent:
|
|
90 |
agent = BasicAgent()
|
91 |
except Exception as e:
|
92 |
print(f"Error instantiating agent: {e}")
|
93 |
-
|
94 |
# In the case of an app running as a hugging Face space, this link points toward your codebase (useful for others so please keep it public)
|
95 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
96 |
print(agent_code)
|
|
|
90 |
agent = BasicAgent()
|
91 |
except Exception as e:
|
92 |
print(f"Error instantiating agent: {e}")
|
93 |
+
return f"Error initializing agent: {e}", None
|
94 |
# In the case of an app running as a hugging Face space, this link points toward your codebase (useful for others so please keep it public)
|
95 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
96 |
print(agent_code)
|