Spaces:
Sleeping
Sleeping
custom_tool update
Browse files
app.py
CHANGED
|
@@ -15,12 +15,13 @@ from Gradio_UI import GradioUI
|
|
| 15 |
|
| 16 |
@tool
|
| 17 |
def my_custom_tool(arg1: str, arg2: int) -> str:
|
| 18 |
-
"""
|
|
|
|
| 19 |
Args:
|
| 20 |
-
arg1:
|
| 21 |
-
arg2:
|
| 22 |
"""
|
| 23 |
-
return f
|
| 24 |
|
| 25 |
|
| 26 |
@tool
|
|
|
|
| 15 |
|
| 16 |
@tool
|
| 17 |
def my_custom_tool(arg1: str, arg2: int) -> str:
|
| 18 |
+
"""Tool de démonstration.
|
| 19 |
+
Retourne une phrase en français décrivant l'appel effectué.
|
| 20 |
Args:
|
| 21 |
+
arg1: premier argument textuel.
|
| 22 |
+
arg2: second argument numérique.
|
| 23 |
"""
|
| 24 |
+
return f'Le tool my_custom_tool a été appelé avec arg1="{arg1}" et arg2={arg2}.'
|
| 25 |
|
| 26 |
|
| 27 |
@tool
|