Update app.py
Browse files
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 |
-
|
227 |
-
|
|
|
|
|
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
|
232 |
-
|
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])
|