retr0reg commited on
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
|