quanvndzai commited on
Commit
52abd1a
·
1 Parent(s): c949afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,7 +3,9 @@ import subprocess
3
  import shlex
4
 
5
  def execute_command(command):
 
6
  result = subprocess.run(shlex.split(command), stdout=subprocess.PIPE).stdout.decode('utf-8')
 
7
  return str(result)
8
 
9
  inputs = gr.inputs.Textbox(default="print('Hello, world!')", lines=3)
 
3
  import shlex
4
 
5
  def execute_command(command):
6
+ print("Run request " + command)
7
  result = subprocess.run(shlex.split(command), stdout=subprocess.PIPE).stdout.decode('utf-8')
8
+ print(result)
9
  return str(result)
10
 
11
  inputs = gr.inputs.Textbox(default="print('Hello, world!')", lines=3)