Spaces:
Sleeping
Sleeping
GAIA Developer
Claude
commited on
Commit
Β·
b16980c
1
Parent(s):
0a9dc40
π§ Add enhanced error handling and startup diagnostics
Browse files- Add GAIASolver initialization testing during startup
- Improve Gradio launch configuration with fallback
- Add better error reporting for debugging HuggingFace Space issues
- Configure proper server binding for containerized environment
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -399,9 +399,17 @@ if __name__ == "__main__":
|
|
| 399 |
|
| 400 |
print("\nπ§ System Status:")
|
| 401 |
|
| 402 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
components_status = {
|
| 404 |
-
"GAIASolver": "β
Available (legacy architecture)",
|
| 405 |
"Question Processing": "β
Available",
|
| 406 |
"GAIA Tools": "β
Available (42 specialized tools)",
|
| 407 |
"Model Providers": "β
Available (6 providers initialized)"
|
|
@@ -416,4 +424,10 @@ if __name__ == "__main__":
|
|
| 416 |
print(f"{'='*70}\n")
|
| 417 |
|
| 418 |
print("π Launching Advanced GAIA Agent Interface...")
|
| 419 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 399 |
|
| 400 |
print("\nπ§ System Status:")
|
| 401 |
|
| 402 |
+
# Test GAIASolver initialization to catch any startup errors
|
| 403 |
+
try:
|
| 404 |
+
print("π Testing GAIASolver initialization...")
|
| 405 |
+
from main import GAIASolver
|
| 406 |
+
test_solver = GAIASolver()
|
| 407 |
+
print("β
GAIASolver - Initialized successfully")
|
| 408 |
+
except Exception as e:
|
| 409 |
+
print(f"β GAIASolver - Error: {e}")
|
| 410 |
+
|
| 411 |
+
# Check other components
|
| 412 |
components_status = {
|
|
|
|
| 413 |
"Question Processing": "β
Available",
|
| 414 |
"GAIA Tools": "β
Available (42 specialized tools)",
|
| 415 |
"Model Providers": "β
Available (6 providers initialized)"
|
|
|
|
| 424 |
print(f"{'='*70}\n")
|
| 425 |
|
| 426 |
print("π Launching Advanced GAIA Agent Interface...")
|
| 427 |
+
try:
|
| 428 |
+
demo.launch(debug=False, share=False, server_name="0.0.0.0", server_port=7860)
|
| 429 |
+
except Exception as e:
|
| 430 |
+
print(f"β Failed to launch Gradio interface: {e}")
|
| 431 |
+
# Try with minimal configuration
|
| 432 |
+
print("π Retrying with minimal configuration...")
|
| 433 |
+
demo.launch()
|