learn-gradio / app.py
lizelive's picture
Update app.py
c6a12dc
raw
history blame contribute delete
212 Bytes
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()