Spaces:
Runtime error
Runtime error
venkat-srinivasan-nexusflow
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -63,12 +63,6 @@ FUNCTIONS = [
|
|
63 |
description_function=lambda place_1, place_2: "Calculating distances",
|
64 |
explanation_function=lambda result: result[2],
|
65 |
),
|
66 |
-
Function(
|
67 |
-
name="irrelevant_query",
|
68 |
-
short_description="The provided query does not relate to locations, reviews, or recommendations.",
|
69 |
-
description_function=lambda user_query : "Irrelevant query detected.",
|
70 |
-
explanation_function = lambda user_query : "Irrelevant query detected."
|
71 |
-
),
|
72 |
Function(
|
73 |
name="get_recommendations",
|
74 |
short_description="Read recommendations",
|
@@ -96,6 +90,12 @@ FUNCTIONS = [
|
|
96 |
description_function=lambda place_names, **_: f"Fetching reviews for the requested items",
|
97 |
explanation_function=lambda result: f"Fetched {len(result)} reviews!",
|
98 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
]
|
100 |
|
101 |
|
|
|
63 |
description_function=lambda place_1, place_2: "Calculating distances",
|
64 |
explanation_function=lambda result: result[2],
|
65 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
Function(
|
67 |
name="get_recommendations",
|
68 |
short_description="Read recommendations",
|
|
|
90 |
description_function=lambda place_names, **_: f"Fetching reviews for the requested items",
|
91 |
explanation_function=lambda result: f"Fetched {len(result)} reviews!",
|
92 |
),
|
93 |
+
Function(
|
94 |
+
name="irrelevant_query",
|
95 |
+
short_description="The provided query does not relate to locations, reviews, or recommendations.",
|
96 |
+
description_function=lambda user_query : "Irrelevant query detected.",
|
97 |
+
explanation_function = lambda user_query : "Irrelevant query detected."
|
98 |
+
)
|
99 |
]
|
100 |
|
101 |
|