Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -53,10 +53,10 @@ def load_models():
|
|
53 |
|
54 |
sketch_decoder = SketchDecoder()
|
55 |
|
56 |
-
model = Qwen2_5_VLForConditionalGeneration.from_pretrained("OmniSVG/OmniSVG-3B")
|
57 |
-
print("Loading Successfully!")
|
58 |
-
|
59 |
-
|
60 |
sketch_decoder = sketch_decoder.to(device).eval()
|
61 |
|
62 |
svg_tokenizer = SVGTokenizer('config.yaml')
|
|
|
53 |
|
54 |
sketch_decoder = SketchDecoder()
|
55 |
|
56 |
+
#model = Qwen2_5_VLForConditionalGeneration.from_pretrained("OmniSVG/OmniSVG-3B")
|
57 |
+
#print("Loading Successfully!")
|
58 |
+
sketch_weight_path = "https://huggingface.co/OmniSVG/OmniSVG-3B/resolve/main/pytorch_model.bin"
|
59 |
+
sketch_decoder.load_state_dict(torch.load(sketch_weight_path))
|
60 |
sketch_decoder = sketch_decoder.to(device).eval()
|
61 |
|
62 |
svg_tokenizer = SVGTokenizer('config.yaml')
|