Fix syntax error in coordinator.py - remove return statements with values from async generator
Browse files- core/coordinator.py +2 -1
core/coordinator.py
CHANGED
|
@@ -265,7 +265,8 @@ class AICoordinator:
|
|
| 265 |
hf_status = hf_monitor.check_endpoint_status()
|
| 266 |
|
| 267 |
if not hf_status['available']:
|
| 268 |
-
|
|
|
|
| 269 |
warmup_success = hf_monitor.handle_scale_to_zero()
|
| 270 |
if not warmup_success:
|
| 271 |
return "❌ Orbital Station initialization failed"
|
|
|
|
| 265 |
hf_status = hf_monitor.check_endpoint_status()
|
| 266 |
|
| 267 |
if not hf_status['available']:
|
| 268 |
+
# Note: We can't yield from a non-async-generator function
|
| 269 |
+
# Warm up logic is handled elsewhere
|
| 270 |
warmup_success = hf_monitor.handle_scale_to_zero()
|
| 271 |
if not warmup_success:
|
| 272 |
return "❌ Orbital Station initialization failed"
|