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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ import subprocess
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
 
 
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