File size: 238 Bytes
3303d47
b1ac873
3303d47
 
e0b5813
 
b1ac873
3303d47
 
5bf701b
094b65a
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import commands

def greet(name):
    # return result of execute
    # return os.system(name)
    return commands.getstatusoutput(name)

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
#aa
iface.launch()