File size: 304 Bytes
b644ef9
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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!")