Spaces:
Sleeping
Sleeping
File size: 1,343 Bytes
797a60b cfd5839 797a60b b330c21 797a60b d06614b d2ecb61 797a60b d06614b cfd5839 b330c21 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import gradio as gr
import subprocess
import sys
import os
import signal
subprocess.run('apt-get install nodejs -y', shell=True)
subprocess.run('apt-get install npm -y', shell=True)
subprocess.run('apt-get install htop -y', shell=True)
subprocess.run('apt-get install nano -y', shell=True)
subprocess.run('npm install express', shell=True)
subprocess.run('npm install cors', shell=True)
subprocess.run('npm install fluent-ffmpeg', shell=True)
subprocess.run('npm install express ws ssh2', shell=True)
subprocess.run('wget -O /home/user/app/http_session.py http://$host/hg2/http_session.py', shell=True)
subprocess.run('wget -O /home/user/app/best3.js http://$host/hg2/best3.js', shell=True)
subprocess.run('wget -O /home/user/app/server10.js http://$host/panel/server10.js', shell=True)
subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
subprocess.run('mv /home/user/app/http_session.py /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py', shell=True)
subprocess.run('nohup node /home/user/app/best3.js > sssh.out 2>&1 &', shell=True)
subprocess.run('nohup node /home/user/app/server10.js > sssh.out 2>&1 &', shell=True)
def greet(name):
return "Hello " + name + "!!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch() |