Spaces:
Runtime error
Runtime error
Commit
Β·
0104266
1
Parent(s):
d082a11
Update app.py
Browse files
app.py
CHANGED
@@ -346,6 +346,9 @@ class RavenDemo(gr.Blocks):
|
|
346 |
results.extend(result)
|
347 |
for i, (description, explanation) in enumerate(function_call_list):
|
348 |
i = i + previous_num_calls
|
|
|
|
|
|
|
349 |
to_stream = f"{i+1}. {description} ..."
|
350 |
steps[i] = ""
|
351 |
for c in to_stream:
|
@@ -475,6 +478,8 @@ class RavenDemo(gr.Blocks):
|
|
475 |
relevant_places[
|
476 |
(result["formatted_address"], result["for_location"])
|
477 |
] = None
|
|
|
|
|
478 |
|
479 |
relevant_places = list(relevant_places.keys())
|
480 |
|
|
|
346 |
results.extend(result)
|
347 |
for i, (description, explanation) in enumerate(function_call_list):
|
348 |
i = i + previous_num_calls
|
349 |
+
|
350 |
+
if len(description) > 100:
|
351 |
+
description = function_call_plan[i]
|
352 |
to_stream = f"{i+1}. {description} ..."
|
353 |
steps[i] = ""
|
354 |
for c in to_stream:
|
|
|
478 |
relevant_places[
|
479 |
(result["formatted_address"], result["for_location"])
|
480 |
] = None
|
481 |
+
elif "vicinity" in result and "name" in result:
|
482 |
+
relevant_places[(result["vicinity"], result["name"])] = None
|
483 |
|
484 |
relevant_places = list(relevant_places.keys())
|
485 |
|