Omnibus commited on
Commit
8008e61
1 Parent(s): afd8070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -222,11 +222,11 @@ with gr.Blocks() as app:
222
  outp5 = gr.HTML("""""")
223
  hid_box=gr.Textbox(visible=False)
224
 
225
- def upd(im):
226
- #image = Image.open(im)
227
- #im.save(f"{uid}tmp_src.png")
228
- #return(f"{uid}tmp_src.png")
229
- return im
230
  inp.change(upd,inp,inp)
231
 
232
  btn.click(fin_clear,None,fin,show_progress=False)
 
222
  outp5 = gr.HTML("""""")
223
  hid_box=gr.Textbox(visible=False)
224
 
225
+ def upd(image):
226
+ cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
227
+ out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
228
+ out_url = f'https://omnibus_AI_or_Not_dev.hf.space/file={out}'
229
+ return out_url
230
  inp.change(upd,inp,inp)
231
 
232
  btn.click(fin_clear,None,fin,show_progress=False)