drscotthawley commited on
Commit
c6d1aad
1 Parent(s): 0dc3eb6

fixing executable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def process_image(image, repaint, busyness):
108
  PREFIX = 'gradiodemo'
109
  # !echo {DEVICES} {CT_HOME} {CKPT} {PREFIX} {masked_img_file}
110
  print("Reading init image from ", masked_img_file,", repaint = ",repaint)
111
- cmd = f'python {CT_HOME}/sample.py --batch-size {bs} --checkpoint {CKPT} --config {CT_HOME}/configs/config_pop909_256x256_chords.json -n {num} --prefix {PREFIX} --init-image {masked_img_file} --steps=100 --repaint={repaint}'
112
  print("Will run command: ", cmd)
113
  args = cmd.split(' ')
114
  #call(cmd, shell=True)
 
108
  PREFIX = 'gradiodemo'
109
  # !echo {DEVICES} {CT_HOME} {CKPT} {PREFIX} {masked_img_file}
110
  print("Reading init image from ", masked_img_file,", repaint = ",repaint)
111
+ cmd = f'{sys.executable} {CT_HOME}/sample.py --batch-size {bs} --checkpoint {CKPT} --config {CT_HOME}/configs/config_pop909_256x256_chords.json -n {num} --prefix {PREFIX} --init-image {masked_img_file} --steps=100 --repaint={repaint}'
112
  print("Will run command: ", cmd)
113
  args = cmd.split(' ')
114
  #call(cmd, shell=True)