Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,10 +198,6 @@ if __name__ == "__main__":
|
|
| 198 |
agent = BasicAgent()
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error instantiating agent: {e}")
|
| 201 |
-
return f"Error initializing agent: {e}", None
|
| 202 |
-
# 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)
|
| 203 |
-
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 204 |
-
print(agent_code)
|
| 205 |
else:
|
| 206 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
| 207 |
|
|
|
|
| 198 |
agent = BasicAgent()
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error instantiating agent: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
else:
|
| 202 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
| 203 |
|