Spaces:
Sleeping
Sleeping
fix syntax
Browse files
app.py
CHANGED
|
@@ -10,8 +10,6 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
|
| 13 |
-
search = DuckDuckGoSearchTool
|
| 14 |
-
|
| 15 |
def get_recipie(meal:str, pers:int)-> str: #it's import to specify the return type
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that gives you recipies!
|
|
@@ -22,8 +20,8 @@ def get_recipie(meal:str, pers:int)-> str: #it's import to specify the return ty
|
|
| 22 |
try:
|
| 23 |
#Query
|
| 24 |
query = f"recette {meal} pour {pers} personnes site:marmiton.org OR site:750g.com"
|
| 25 |
-
results =
|
| 26 |
-
return results
|
| 27 |
|
| 28 |
@tool
|
| 29 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
|
|
|
|
|
|
|
| 13 |
def get_recipie(meal:str, pers:int)-> str: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
"""A tool that gives you recipies!
|
|
|
|
| 20 |
try:
|
| 21 |
#Query
|
| 22 |
query = f"recette {meal} pour {pers} personnes site:marmiton.org OR site:750g.com"
|
| 23 |
+
results = DuckDuckGoSearchTool.(query)
|
| 24 |
+
return f"Voici des idées de recettes de {meal} pour {pers} personnes : {results}"
|
| 25 |
|
| 26 |
@tool
|
| 27 |
def get_current_time_in_timezone(timezone: str) -> str:
|