Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -276,7 +276,7 @@ def update_map_with_response(history):
|
|
| 276 |
def clear_textbox():
|
| 277 |
return ""
|
| 278 |
|
| 279 |
-
def show_map_if_details(choice
|
| 280 |
if choice == "Details":
|
| 281 |
return gr.update(visible=True), update_map_with_response(history)
|
| 282 |
else:
|
|
@@ -320,7 +320,8 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 320 |
with gr.Column():
|
| 321 |
gr.Markdown("Locate the Events")
|
| 322 |
location_output = gr.HTML()
|
| 323 |
-
bot_msg.then(show_map_if_details, chatbot, location_output)
|
|
|
|
| 324 |
|
| 325 |
setup_ui()
|
| 326 |
|
|
|
|
| 276 |
def clear_textbox():
|
| 277 |
return ""
|
| 278 |
|
| 279 |
+
def show_map_if_details(history,choice):
|
| 280 |
if choice == "Details":
|
| 281 |
return gr.update(visible=True), update_map_with_response(history)
|
| 282 |
else:
|
|
|
|
| 320 |
with gr.Column():
|
| 321 |
gr.Markdown("Locate the Events")
|
| 322 |
location_output = gr.HTML()
|
| 323 |
+
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output])
|
| 324 |
+
|
| 325 |
|
| 326 |
setup_ui()
|
| 327 |
|