xteamji Dragdev commited on
Commit
5fad1af
·
verified ·
1 Parent(s): eb26071

Create app.py (#1)

Browse files

- Create app.py (50740a2d6358c0fefb59b10c4c806d0acba111d9)


Co-authored-by: Deago <Dragdev@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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", "xteam"])
11
+
12
+ if st.button("Start Userbot"):
13
+ run_userbot()
14
+ st.success("Userbot is running!")
15
+