Spaces:
Paused
Paused
Download app.py from Dragdev/telegrambot: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/Dragdev/telegrambot/resolve/main/app.py
- Command line
-
hf download hf://spaces/Dragdev/telegrambot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Dragdev/telegrambot/resolve/main/app.py
348 Bytes
| import os | |
| import subprocess | |
| import streamlit as st | |
| # Set up the environment (if needed) | |
| os.environ["PYTHONUNBUFFERED"] = "1" | |
| # Run the Gojo_Satoru bot from Powers module | |
| def run_bot(): | |
| subprocess.run(["python3", "-m", "Powers"]) | |
| st.title("Telegram Bot") | |
| if st.button("Start flash Bot"): | |
| run_bot() | |
| st.success("flash Bot is running!") |