shuv25 commited on
Commit
da512ed
·
verified ·
1 Parent(s): c0e783f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
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
- loading_html = """
447
- <div style='padding:40px; text-align:center; background:#fafafa; border-radius:10px; min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center;'>
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,