Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def run(image, mode, sample_c=1.3, num_samples=3, sample_step=100):
|
|
35 |
if mode == 'sketch':
|
36 |
args.mode = 'coco-edge'
|
37 |
args_up.mode = 'coco-edge'
|
38 |
-
args.model_path = hf_hub_download(repo_id="tfwang/PITI", filename="
|
39 |
-
args.sr_model_path = hf_hub_download(repo_id="tfwang/PITI", filename="
|
40 |
|
41 |
elif mode == 'mask':
|
42 |
args.mode = 'coco'
|
|
|
35 |
if mode == 'sketch':
|
36 |
args.mode = 'coco-edge'
|
37 |
args_up.mode = 'coco-edge'
|
38 |
+
args.model_path = hf_hub_download(repo_id="tfwang/PITI", filename="base.pt")
|
39 |
+
args.sr_model_path = hf_hub_download(repo_id="tfwang/PITI", filename="upsample.pt")
|
40 |
|
41 |
elif mode == 'mask':
|
42 |
args.mode = 'coco'
|