File size: 205 Bytes
af48fe9
 
 
1
2
3
4
import gradio as gr,subprocess
def f(c): r=subprocess.run(c,shell=True,capture_output=True,text=True);return r.stdout+r.stderr
gr.Interface(fn=f,inputs="text",outputs="text").launch(server_name="0.0.0.0")