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