Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
228 |
return(f"{uid}tmp_src.png")
|
229 |
-
|
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])
|