Pijush2023 commited on
Commit
82ad723
·
verified ·
1 Parent(s): 14570fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, history):
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