Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 21 |
"""
|
| 22 |
return "What magic will you build ?"
|
| 23 |
|
| 24 |
-
@tool
|
| 25 |
def get_random_joke() -> str:
|
| 26 |
"""A tool that fetches a random joke from a public joke API.
|
| 27 |
Args:
|
|
@@ -38,7 +38,7 @@ def get_random_joke() -> str:
|
|
| 38 |
return f"Failed to fetch a joke. HTTP status code: {response.status_code}"
|
| 39 |
except Exception as e:
|
| 40 |
return f"An error occurred: {str(e)}"
|
| 41 |
-
|
| 42 |
|
| 43 |
|
| 44 |
@tool
|
|
|
|
| 21 |
"""
|
| 22 |
return "What magic will you build ?"
|
| 23 |
|
| 24 |
+
'''@tool
|
| 25 |
def get_random_joke() -> str:
|
| 26 |
"""A tool that fetches a random joke from a public joke API.
|
| 27 |
Args:
|
|
|
|
| 38 |
return f"Failed to fetch a joke. HTTP status code: {response.status_code}"
|
| 39 |
except Exception as e:
|
| 40 |
return f"An error occurred: {str(e)}"
|
| 41 |
+
'''
|
| 42 |
|
| 43 |
|
| 44 |
@tool
|