Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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", "xteam"])
|
| 11 |
+
|
| 12 |
+
if st.button("Start Userbot"):
|
| 13 |
+
run_userbot()
|
| 14 |
+
st.success("Userbot is running!")
|