| 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() | |
| 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() | |