Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ 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 my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
13 |
-
|
14 |
response = requests.get("https://official-joke-api.appspot.com/random_joke")
|
15 |
data = response.json()
|
16 |
return f"{data['setup']} — {data['punchline']}"
|
|
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
13 |
+
"""Возвращает случайную шутку."""
|
14 |
response = requests.get("https://official-joke-api.appspot.com/random_joke")
|
15 |
data = response.json()
|
16 |
return f"{data['setup']} — {data['punchline']}"
|