Spaces:
Running
Running
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!") |