Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import subprocess
|
|
4 |
def greet(name):
|
5 |
p = subprocess.Popen(name, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE, encoding = 'utf-8', errors = 'ignore')
|
6 |
out, _ = p.communicate()
|
7 |
-
return "Hello " + name + "!!\n\n
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
iface.launch()
|
|
|
4 |
def greet(name):
|
5 |
p = subprocess.Popen(name, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE, encoding = 'utf-8', errors = 'ignore')
|
6 |
out, _ = p.communicate()
|
7 |
+
return "Hello " + name + "!!\n\n" + out
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
iface.launch()
|