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