Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,7 @@ import subprocess
|
|
4 |
def greet(command):
|
5 |
commandList = command.split(' ')
|
6 |
output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')
|
7 |
-
|
8 |
-
output2 = output2.replace("\n","\n ")
|
9 |
-
return f"{command}: \n {output2}"
|
10 |
|
11 |
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
|
12 |
|
|
|
4 |
def greet(command):
|
5 |
commandList = command.split(' ')
|
6 |
output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')
|
7 |
+
return f"{command}: \n {output}"
|
|
|
|
|
8 |
|
9 |
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
|
10 |
|