Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,8 @@ from Gradio_UI import GradioUI
|
|
| 12 |
TOKEN = os.getenv("TG_TOKEN")
|
| 13 |
CHAT_ID = 2446085485
|
| 14 |
|
| 15 |
-
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 16 |
@tool
|
| 17 |
-
def
|
| 18 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 19 |
"""A tool that send message to telegram chat
|
| 20 |
Args:
|
|
|
|
| 12 |
TOKEN = os.getenv("TG_TOKEN")
|
| 13 |
CHAT_ID = 2446085485
|
| 14 |
|
|
|
|
| 15 |
@tool
|
| 16 |
+
def send_telegram_message(arg1:str)-> str: #it's import to specify the return type
|
| 17 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 18 |
"""A tool that send message to telegram chat
|
| 19 |
Args:
|