Spaces:
Sleeping
Sleeping
Update server.py
Browse files
src/adaptive_alert_triage/server.py
CHANGED
|
@@ -651,3 +651,9 @@ async def list_tasks():
|
|
| 651 |
{"id": "medium", "success_threshold": 0.55, "max_steps": 40},
|
| 652 |
{"id": "hard", "success_threshold": 0.50, "max_steps": 50},
|
| 653 |
]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 651 |
{"id": "medium", "success_threshold": 0.55, "max_steps": 40},
|
| 652 |
{"id": "hard", "success_threshold": 0.50, "max_steps": 50},
|
| 653 |
]}
|
| 654 |
+
@app.get("/debug/env")
|
| 655 |
+
async def debug_env():
|
| 656 |
+
return {
|
| 657 |
+
"has_token": os.environ.get("HF_TOKEN") is not None,
|
| 658 |
+
"env_keys": list(os.environ.keys())
|
| 659 |
+
}
|