Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -278,18 +278,6 @@ def redirect_to_space(redirect_url, selected_space, status_display):
|
|
| 278 |
</div>
|
| 279 |
</div>
|
| 280 |
|
| 281 |
-
<div style="background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 8px; padding: 20px; margin-bottom: 20px;">
|
| 282 |
-
<h4 style="margin-top: 0; color: #856404;">📋 Alternative Access Methods</h4>
|
| 283 |
-
<div style="color: #856404; line-height: 1.6;">
|
| 284 |
-
<p><strong>Method 1:</strong> Click the blue button above (recommended)</p>
|
| 285 |
-
<p><strong>Method 2:</strong> Copy and paste this URL into a new browser tab:</p>
|
| 286 |
-
<div style="background: white; padding: 10px; border-radius: 5px; margin: 10px 0; font-family: monospace; font-size: 12px; word-break: break-all; border: 1px solid #ddd;">
|
| 287 |
-
{redirect_url}
|
| 288 |
-
</div>
|
| 289 |
-
<p><strong>Method 3:</strong> Search for "{selected_space['space_name']}" on Hugging Face Spaces</p>
|
| 290 |
-
</div>
|
| 291 |
-
</div>
|
| 292 |
-
|
| 293 |
<div style="text-align: center; padding: 20px; background: #f1f3f4; border-radius: 8px; margin-top: 20px;">
|
| 294 |
<p style="margin: 0; color: #5f6368; font-size: 14px;">
|
| 295 |
🔄 Need a different assistant? <a href="javascript:location.reload()" style="color: #1976d2; text-decoration: none;">Refresh this page</a> to get reassigned.
|
|
@@ -327,7 +315,7 @@ def get_url_params(request: gr.Request):
|
|
| 327 |
query_params = dict(request.query_params)
|
| 328 |
check_id = query_params.get('check', None)
|
| 329 |
if check_id:
|
| 330 |
-
return f"Load Distributor", check_id
|
| 331 |
else:
|
| 332 |
return "Load Distributor", None
|
| 333 |
return "Load Distributor", None
|
|
|
|
| 278 |
</div>
|
| 279 |
</div>
|
| 280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
<div style="text-align: center; padding: 20px; background: #f1f3f4; border-radius: 8px; margin-top: 20px;">
|
| 282 |
<p style="margin: 0; color: #5f6368; font-size: 14px;">
|
| 283 |
🔄 Need a different assistant? <a href="javascript:location.reload()" style="color: #1976d2; text-decoration: none;">Refresh this page</a> to get reassigned.
|
|
|
|
| 315 |
query_params = dict(request.query_params)
|
| 316 |
check_id = query_params.get('check', None)
|
| 317 |
if check_id:
|
| 318 |
+
return f"Load Distributor - Student {check_id}", check_id
|
| 319 |
else:
|
| 320 |
return "Load Distributor", None
|
| 321 |
return "Load Distributor", None
|