Update app.py
Browse files
app.py
CHANGED
|
@@ -441,15 +441,10 @@ with gr.Blocks(
|
|
| 441 |
# "<div style='padding:40px; text-align:center; color:#757575; background:#fafafa; border-radius:10px; min-height:300px;'>Loading new map...</div>",
|
| 442 |
# )
|
| 443 |
|
| 444 |
-
def reset_before_new_query():
|
| 445 |
-
"""Show loading state while processing"""
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
<div class='loading-spinner'></div>
|
| 449 |
-
<p style='margin-top:20px; color:#757575; font-size:1.1em;'>Processing your request...</p>
|
| 450 |
-
</div>
|
| 451 |
-
"""
|
| 452 |
-
return (loading_html, loading_html)
|
| 453 |
|
| 454 |
# submit_btn.click(
|
| 455 |
# fn=reset_before_new_query,
|
|
|
|
| 441 |
# "<div style='padding:40px; text-align:center; color:#757575; background:#fafafa; border-radius:10px; min-height:300px;'>Loading new map...</div>",
|
| 442 |
# )
|
| 443 |
|
| 444 |
+
def reset_before_new_query(query):
|
| 445 |
+
"""Show loading state in query input while processing"""
|
| 446 |
+
loading_message = f"{query}\n\n⏳ Processing your request..."
|
| 447 |
+
return loading_message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 448 |
|
| 449 |
# submit_btn.click(
|
| 450 |
# fn=reset_before_new_query,
|