OmniSVG commited on
Commit
4a54b37
·
verified ·
1 Parent(s): e48ff8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- #sketch_weight_path = "https://huggingface.co/OmniSVG/OmniSVG/resolve/main/OmniSVG-3B.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')
 
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')