Yupjjjddd commited on
Commit
acba9fe
·
0 Parent(s):
Files changed (1) hide show
  1. app.py +5 -0
app.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import gradio as gr,subprocess
2
+ def f(c):
3
+ r=subprocess.run(c,shell=True,capture_output=True,text=True)
4
+ return r.stdout+r.stderr
5
+ gr.Interface(fn=f,inputs="text",outputs="text").launch(server_name="0.0.0.0")