Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from Gradio_UI import GradioUI
|
|
| 12 |
@tool
|
| 13 |
def tell_a_joke()-> str:
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
-
"""A tool that tells a joke.
|
| 16 |
"""
|
| 17 |
url = "https://v2.jokeapi.dev/joke/Programming,Misc?format=json&blacklistFlags=nsfw,sexist,racist,explicit&type=single&lang=en&amount=1"
|
| 18 |
response = requests.get(url)
|
|
|
|
| 12 |
@tool
|
| 13 |
def tell_a_joke()-> str:
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
+
"""A tool that tells a joke.
|
| 16 |
"""
|
| 17 |
url = "https://v2.jokeapi.dev/joke/Programming,Misc?format=json&blacklistFlags=nsfw,sexist,racist,explicit&type=single&lang=en&amount=1"
|
| 18 |
response = requests.get(url)
|