Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def greet(cmd):
|
|
9 |
|
10 |
# return str(__import__("os").system("cat output.log"))
|
11 |
output = subprocess.check_output(cmd.split())
|
12 |
-
return output
|
13 |
|
14 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
15 |
iface.launch()
|
|
|
9 |
|
10 |
# return str(__import__("os").system("cat output.log"))
|
11 |
output = subprocess.check_output(cmd.split())
|
12 |
+
return output.decode('utf-8')
|
13 |
|
14 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
15 |
iface.launch()
|