Omnibus commited on
Commit
33c7506
·
1 Parent(s): d19e84e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -223,13 +223,15 @@ with gr.Blocks() as app:
223
  hid_box=gr.Textbox(visible=False)
224
 
225
  def upd(image):
226
- rand_im = uuid.uuid4()
227
- image.save(f"{rand_im}-vid_tmp_proc.png")
 
 
228
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
229
  #out_url = f'https://omnibus_AI_or_Not_dev.hf.space/file={out}'
230
- out_url = f"{rand_im}-vid_tmp_proc.png"
231
- return out_url
232
- #inp.change(upd,inp,inp)
233
 
234
  btn.click(fin_clear,None,fin,show_progress=False)
235
  load_btn.click(load_url,in_url,[inp,mes])
 
223
  hid_box=gr.Textbox(visible=False)
224
 
225
  def upd(image):
226
+ out = Image.open(image)
227
+
228
+ #rand_im = uuid.uuid4()
229
+ #image.save(f"{rand_im}-vid_tmp_proc.png")
230
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
231
  #out_url = f'https://omnibus_AI_or_Not_dev.hf.space/file={out}'
232
+ #out_url = f"{rand_im}-vid_tmp_proc.png"
233
+ return out
234
+ inp.change(upd,inp,inp)
235
 
236
  btn.click(fin_clear,None,fin,show_progress=False)
237
  load_btn.click(load_url,in_url,[inp,mes])