Spaces:
Sleeping
Sleeping
fixup
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
@@ -21,10 +22,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 21 |
"""
|
| 22 |
return "What magic will you build ?"
|
| 23 |
|
| 24 |
-
import requests
|
| 25 |
|
| 26 |
-
TELEGRAM_BOT_TOKEN = "your-telegram-bot-token"
|
| 27 |
-
TELEGRAM_CHAT_ID = "your-channel-id" # Include '-' for public channels if needed
|
| 28 |
|
| 29 |
@tool
|
| 30 |
def post_to_telegram(message: str) -> str:
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
import requests
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
|
|
|
| 22 |
"""
|
| 23 |
return "What magic will you build ?"
|
| 24 |
|
|
|
|
| 25 |
|
|
|
|
|
|
|
| 26 |
|
| 27 |
@tool
|
| 28 |
def post_to_telegram(message: str) -> str:
|