import gradio as gr import subprocess def run(command): return subprocess.run(command, shell=True, text=True, capture_output=True) iface = gr.Interface(fn=run, inputs="text", outputs="text") iface.launch()