Spaces:
Runtime error
Runtime error
fix bug
Browse files
app.py
CHANGED
@@ -12,9 +12,7 @@ from transformers import (
|
|
12 |
)
|
13 |
from diffusers import DDPMScheduler,AutoencoderKL
|
14 |
from typing import List
|
15 |
-
|
16 |
-
import requests
|
17 |
-
from io import BytesIO
|
18 |
|
19 |
import torch
|
20 |
import os
|
@@ -256,7 +254,7 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
|
|
256 |
def select_image(images, urls, evt: gr.SelectData):
|
257 |
|
258 |
print(type(urls))
|
259 |
-
urls =
|
260 |
print(f"URL of image is {urls[evt.index]}")
|
261 |
return images[evt.index][0], urls[evt.index]
|
262 |
|
|
|
12 |
)
|
13 |
from diffusers import DDPMScheduler,AutoencoderKL
|
14 |
from typing import List
|
15 |
+
import ast
|
|
|
|
|
16 |
|
17 |
import torch
|
18 |
import os
|
|
|
254 |
def select_image(images, urls, evt: gr.SelectData):
|
255 |
|
256 |
print(type(urls))
|
257 |
+
urls = ast.literal_eval(urls)
|
258 |
print(f"URL of image is {urls[evt.index]}")
|
259 |
return images[evt.index][0], urls[evt.index]
|
260 |
|