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