Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,7 @@ def mutante_unicorn(animal_name:str) -> str: #it's import to specify the return
|
|
| 43 |
except Exception as e:
|
| 44 |
return f"Error creating a mutant unicorn for '{animal_name}': {str(e)}"
|
| 45 |
|
|
|
|
| 46 |
def describe_animal(animal_name:str) -> str:
|
| 47 |
"""Look up for the name of the animal inwikipedia using websearch tool, and then provide a 300 characters description about that animal
|
| 48 |
Args:
|
|
|
|
| 43 |
except Exception as e:
|
| 44 |
return f"Error creating a mutant unicorn for '{animal_name}': {str(e)}"
|
| 45 |
|
| 46 |
+
@tool
|
| 47 |
def describe_animal(animal_name:str) -> str:
|
| 48 |
"""Look up for the name of the animal inwikipedia using websearch tool, and then provide a 300 characters description about that animal
|
| 49 |
Args:
|