retr0reg
commited on
Add application file
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
|
4 |
def greet(name):
|
5 |
# return result of execute
|
6 |
# return os.system(name)
|
7 |
-
return
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
#a
|
|
|
1 |
import gradio as gr
|
2 |
+
import commands
|
3 |
|
4 |
def greet(name):
|
5 |
# return result of execute
|
6 |
# return os.system(name)
|
7 |
+
return commands.getstatusoutput(name)
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
#a
|