PhoenixStormJr commited on
Commit
b7c7216
·
verified ·
1 Parent(s): c3f045d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- output2 = " " + output
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