Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,17 +178,17 @@ def fin_clear():
|
|
| 178 |
fin_sum.clear()
|
| 179 |
return None
|
| 180 |
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
|
| 193 |
|
| 194 |
with gr.Blocks() as app:
|
|
|
|
| 178 |
fin_sum.clear()
|
| 179 |
return None
|
| 180 |
|
| 181 |
+
def upd(image):
|
| 182 |
+
print (image)
|
| 183 |
+
rand_im = uuid.uuid4()
|
| 184 |
+
image.save(f"{rand_im}-vid_tmp_proc.png")
|
| 185 |
+
out = Image.open(f"{rand_im}-vid_tmp_proc.png")
|
| 186 |
|
| 187 |
+
#image.save(f"{rand_im}-vid_tmp_proc.png")
|
| 188 |
+
#out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
|
| 189 |
+
#out_url = f'https://omnibus_AI_or_Not_dev.hf.space/file={out}'
|
| 190 |
+
#out_url = f"{rand_im}-vid_tmp_proc.png"
|
| 191 |
+
return out
|
| 192 |
|
| 193 |
|
| 194 |
with gr.Blocks() as app:
|