xteamki commited on
Commit
b644ef9
·
verified ·
1 Parent(s): 9183085

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import subprocess
3
+ import streamlit as st
4
+
5
+ # Set up the environment (if needed)
6
+ os.environ["PYTHONUNBUFFERED"] = "1"
7
+
8
+ # Run the Userbot module
9
+ def run_userbot():
10
+ subprocess.run(["python3", "-m", "Zaid"])
11
+
12
+ if st.button("Start Userbot"):
13
+ run_userbot()
14
+ st.success("Userbot is running!")