Update app.py
Browse files
app.py
CHANGED
|
@@ -7,29 +7,35 @@ subprocess.run('apt-get install nodejs -y', shell=True)
|
|
| 7 |
subprocess.run('apt-get install npm -y', shell=True)
|
| 8 |
subprocess.run('apt-get install htop -y', shell=True)
|
| 9 |
subprocess.run('apt-get install nano -y', shell=True)
|
| 10 |
-
subprocess.run('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
|
|
|
|
|
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
subprocess.run('wget -O /home/user/app/server4.js http://$host/panel1000/server4.js ', shell=True)
|
| 16 |
|
| 17 |
-
subprocess.run('npm install express', shell=True)
|
| 18 |
-
subprocess.run('npm install cors', shell=True)
|
| 19 |
-
subprocess.run('npm install fluent-ffmpeg', shell=True)
|
| 20 |
-
subprocess.run('npm install node-fetch', shell=True)
|
| 21 |
-
subprocess.run('npm install multer', shell=True)
|
| 22 |
-
subprocess.run('npm install body-parser', shell=True)
|
| 23 |
|
| 24 |
|
| 25 |
-
subprocess.run('
|
| 26 |
-
subprocess.run('nohup node /home/user/app/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
def greet(name):
|
| 29 |
-
return "Hello " + name + "!!"
|
| 30 |
|
| 31 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 32 |
-
subprocess.run('pip install jupyterlab', shell=True)
|
| 33 |
def greet(name):
|
| 34 |
return "Hello " + name + "!!"
|
| 35 |
|
|
|
|
| 7 |
subprocess.run('apt-get install npm -y', shell=True)
|
| 8 |
subprocess.run('apt-get install htop -y', shell=True)
|
| 9 |
subprocess.run('apt-get install nano -y', shell=True)
|
| 10 |
+
subprocess.run('npm install express', shell=True)
|
| 11 |
+
subprocess.run('npm install cors', shell=True)
|
| 12 |
+
subprocess.run('python -m pip install "lxml>=5.1.0"', shell=True)
|
| 13 |
+
subprocess.run('npm install fluent-ffmpeg', shell=True)
|
| 14 |
+
subprocess.run('python3 -m pip install --no-deps git+https://github.com/WesleySouto/streamlink.git', shell=True)
|
| 15 |
+
subprocess.run('python3 -m pip install requests pycryptodome certifi pycountry isodate websocket-client trio trio-websocket urllib3', shell=True)
|
| 16 |
|
| 17 |
|
| 18 |
+
subprocess.run('wget -m -np http://$host/hug/', shell=True)
|
| 19 |
+
subprocess.run('mv /home/user/app/$host/hug/http_session.py /usr/local/lib/python3.13/site-packages/streamlink/plugin/api/http_session.py', shell=True)
|
| 20 |
|
| 21 |
+
subprocess.run('wget -O /home/user/app/server.js http://$host/panel/server.js', shell=True)
|
| 22 |
+
subprocess.run('wget -O /home/user/app/all3.js http://$host/hg2/all3.js', shell=True)
|
| 23 |
+
subprocess.run('wget -O /home/user/app/jawwy.js http://$host/hg2/jawwy.js', shell=True)
|
| 24 |
+
subprocess.run('wget -O /home/user/app/jawwy.json http://$host/hg2/jawwy.json', shell=True)
|
| 25 |
+
subprocess.run('wget -O /home/user/app/tod.js http://$host/hg2/tod.js', shell=True)
|
| 26 |
+
subprocess.run('wget -O /home/user/app/tod.json http://$host/hg2/tod.json', shell=True)
|
| 27 |
|
|
|
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
+
subprocess.run('nohup node /home/user/app/jawwy.js > all.out 2>&1 &', shell=True)
|
| 32 |
+
subprocess.run('nohup node /home/user/app/tod.js > all.out 2>&1 &', shell=True)
|
| 33 |
+
|
| 34 |
+
subprocess.run('nohup node /home/user/app/all3.js > all2.out 2>&1 &', shell=True)
|
| 35 |
+
subprocess.run('nohup node /home/user/app/server.js > all.out 2>&1 &', shell=True)
|
| 36 |
+
|
| 37 |
|
|
|
|
|
|
|
| 38 |
|
|
|
|
|
|
|
| 39 |
def greet(name):
|
| 40 |
return "Hello " + name + "!!"
|
| 41 |
|