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")