rbanfield commited on
Commit
78709a4
·
1 Parent(s): 4233462
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
- from subprocess import Popen, PIPE, STDOUT
2
  import gradio as gr
3
 
4
  def run(input_image):
5
- output = subprocess.check_output(["chmod", "a+x", "bin/detect-image"])
6
  cmd = 'bin/detect-image'
7
  p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
8
  return p.stdout.read()
 
1
+ from subprocess import Popen, PIPE, STDOUT, check_output
2
  import gradio as gr
3
 
4
  def run(input_image):
5
+ output = check_output(["chmod", "a+x", "bin/detect-image"])
6
  cmd = 'bin/detect-image'
7
  p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
8
  return p.stdout.read()