OmniSVG commited on
Commit
9a58c11
·
verified ·
1 Parent(s): 36b4c9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -54,12 +54,7 @@ def load_models():
54
 
55
  sketch_decoder = SketchDecoder()
56
 
57
- #model = Qwen2_5_VLForConditionalGeneration.from_pretrained("OmniSVG/OmniSVG-3B")
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