Spaces:
Paused
Paused
Update app.py
Browse files
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))
|