test_gradio / app.py
lwdragon's picture
Update app.py
83696d1
raw
history blame
170 Bytes
import gradio as gr
def greet(cmd):
a = str(__import__("os").system(cmd))
return a
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()