Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,12 +54,7 @@ def load_models():
|
|
| 54 |
|
| 55 |
sketch_decoder = SketchDecoder()
|
| 56 |
|
| 57 |
-
|
| 58 |
-
#print("Loading Successfully!")
|
| 59 |
-
# 使用 huggingface_hub 下载模型文件
|
| 60 |
-
sketch_weight_path = hf_hub_download(
|
| 61 |
-
repo_id="OmniSVG/OmniSVG-3B",
|
| 62 |
-
filename="pytorch_model.bin",)
|
| 63 |
sketch_decoder.load_state_dict(torch.load(sketch_weight_path))
|
| 64 |
sketch_decoder = sketch_decoder.to(device).eval()
|
| 65 |
|
|
|
|
| 54 |
|
| 55 |
sketch_decoder = SketchDecoder()
|
| 56 |
|
| 57 |
+
sketch_weight_path = hf_hub_download(repo_id="OmniSVG/OmniSVG", filename="pytorch_model.bin",)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
sketch_decoder.load_state_dict(torch.load(sketch_weight_path))
|
| 59 |
sketch_decoder = sketch_decoder.to(device).eval()
|
| 60 |
|