Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2020/10/02/13/49/b
|
|
14 |
torchtext.utils.download_from_url("https://drive.google.com/uc?id=1RILKwUdjjBBngB17JHwhZNBEaW4Mr-Ml", root="./weights/")
|
15 |
gpu_ids=[]
|
16 |
model = create_model(gpu_ids)
|
17 |
-
# model.eval()
|
18 |
|
19 |
def sketch2anime(img, load_size=512):
|
20 |
img, aus_resize = read_img_path(img.name, load_size)
|
|
|
14 |
torchtext.utils.download_from_url("https://drive.google.com/uc?id=1RILKwUdjjBBngB17JHwhZNBEaW4Mr-Ml", root="./weights/")
|
15 |
gpu_ids=[]
|
16 |
model = create_model(gpu_ids)
|
|
|
17 |
|
18 |
def sketch2anime(img, load_size=512):
|
19 |
img, aus_resize = read_img_path(img.name, load_size)
|