Spaces:
Runtime error
Runtime 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", "Zaid"]) | |
if st.button("Start Userbot"): | |
run_userbot() | |
st.success("Userbot is running!") |