V-Express / app.py
alexcanton's picture
Create app.py
06b0774 verified
raw
history blame
278 Bytes
import gradio as gr
import subprocess
def run_command(command):
result = subprocess.run(command, shell=True, capture_output=True, text=True)
return result.stdout + "\n" + result.stderr
iface = gr.Interface(fn=run_command, inputs="text", outputs="text")
iface.launch()