Spaces:
Runtime error
Runtime error
Commit
·
f948ada
1
Parent(s):
0fdac13
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
|
4 |
import gradio as gr
|
5 |
|
6 |
-
def greet(
|
7 |
-
|
|
|
8 |
|
9 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import subprocess
|
3 |
|
4 |
import gradio as gr
|
5 |
|
6 |
+
def greet(cmd):
|
7 |
+
out, err = subprocess.call(cmd,shell=True)
|
8 |
+
return out
|
9 |
|
10 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
|