Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -611,7 +611,7 @@ def load_balance_user(student_id):
|
|
| 611 |
raise gr.Error("🚫 No student learning assistant spaces found in the system. Please contact your instructor.", duration=8)
|
| 612 |
|
| 613 |
# Analyze space activity (including both remote and local allocation records)
|
| 614 |
-
space_activity =
|
| 615 |
|
| 616 |
# Select space with enhanced collision avoidance
|
| 617 |
return select_space_with_enhanced_collision_avoidance(space_activity, student_id, repo)
|
|
|
|
| 611 |
raise gr.Error("🚫 No student learning assistant spaces found in the system. Please contact your instructor.", duration=8)
|
| 612 |
|
| 613 |
# Analyze space activity (including both remote and local allocation records)
|
| 614 |
+
space_activity = analyze_space_activity_optimized(available_spaces, LOCAL_DATA_DIR)
|
| 615 |
|
| 616 |
# Select space with enhanced collision avoidance
|
| 617 |
return select_space_with_enhanced_collision_avoidance(space_activity, student_id, repo)
|