Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,11 @@ from Gradio_UI import GradioUI
|
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
def get_inflation_rate(city: str) -> str:
|
13 |
-
"""A tool that estimates the inflation rate for the given city
|
|
|
|
|
|
|
|
|
14 |
try:
|
15 |
query = f"current inflation rate in {city}"
|
16 |
with DDGS() as ddgs:
|
|
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
def get_inflation_rate(city: str) -> str:
|
13 |
+
"""A tool that estimates the inflation rate for the given city
|
14 |
+
using web search.
|
15 |
+
|
16 |
+
Args:
|
17 |
+
city: city name"""
|
18 |
try:
|
19 |
query = f"current inflation rate in {city}"
|
20 |
with DDGS() as ddgs:
|