Spaces:
Build error
Build error
| import os | |
| import subprocess | |
| import streamlit as st | |
| # Set up the environment (if needed) | |
| os.environ["PYTHONUNBUFFERED"] = "1" | |
| # Run the Userbot module | |
| def run_userbot(): | |
| subprocess.run(["python3", "-m", "xteam"]) | |
| if st.button("Start Userbot"): | |
| run_userbot() | |
| st.success("Userbot is running!") | |