Omnibus commited on
Commit
2ee00ba
·
1 Parent(s): 8bb99b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -223,10 +223,10 @@ with gr.Blocks() as app:
223
  hid_box=gr.Textbox(visible=False)
224
 
225
  def upd(im):
226
- image = Image.open(im)
227
- image.save(f"{uid}tmp_src.png")
228
  return(f"{uid}tmp_src.png")
229
- #inp.change(upd,inp,inp)
230
 
231
  btn.click(fin_clear,None,fin,show_progress=False)
232
  load_btn.click(load_url,in_url,[inp,mes])
 
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
+ inp.change(upd,inp,inp)
230
 
231
  btn.click(fin_clear,None,fin,show_progress=False)
232
  load_btn.click(load_url,in_url,[inp,mes])