Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -278,9 +278,9 @@ def clear_textbox():
|
|
| 278 |
|
| 279 |
def show_map_if_details(choice, history):
|
| 280 |
if choice == "Details":
|
| 281 |
-
return update_map_with_response(history)
|
| 282 |
else:
|
| 283 |
-
return ""
|
| 284 |
|
| 285 |
# Gradio Blocks interface
|
| 286 |
with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
|
|
| 278 |
|
| 279 |
def show_map_if_details(choice, history):
|
| 280 |
if choice == "Details":
|
| 281 |
+
return gr.update(visible=True), update_map_with_response(history)
|
| 282 |
else:
|
| 283 |
+
return gr.update(visible=False), ""
|
| 284 |
|
| 285 |
# Gradio Blocks interface
|
| 286 |
with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|