Pijush2023 commited on
Commit
5024e19
·
verified ·
1 Parent(s): 8e4023e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -152,7 +152,11 @@ def bot(history, choice):
152
 
153
  audio_path = audio_future.result()
154
  yield history, audio_path
155
-
 
 
 
 
156
 
157
  def add_message(history, message):
158
  history.append((message, None))
 
152
 
153
  audio_path = audio_future.result()
154
  yield history, audio_path
155
+ if choice == "Conversational":
156
+ address_response = extract_location_from_response(response)
157
+ addresses = extract_addresses(address_response)
158
+ map_html = generate_map(addresses)
159
+ yield history, map_html
160
 
161
  def add_message(history, message):
162
  history.append((message, None))