carlex3321 commited on
Commit
aa104ac
verified
1 Parent(s): 7ce5a63

Update services/vincie.py

Browse files
Files changed (1) hide show
  1. services/vincie.py +3 -2
services/vincie.py CHANGED
@@ -22,6 +22,8 @@ from pathlib import Path
22
  from typing import List, Optional
23
 
24
  from huggingface_hub import hf_hub_download
 
 
25
 
26
 
27
  class VincieService:
@@ -63,8 +65,7 @@ class VincieService:
63
  # Clona com --depth 1 para baixar apenas a vers茫o mais recente
64
  subprocess.run(["git", "clone", "--depth", "1", git_url, str(self.repo_dir)], check=True)
65
 
66
- from huggingface_hub import snapshot_download
67
-
68
  def ensure_model(self, hf_token: Optional[str] = None) -> None:
69
  """Baixa o checkpoint completo e cria o link simb贸lico necess谩rio."""
70
  self.ckpt_dir.mkdir(parents=True, exist_ok=True)
 
22
  from typing import List, Optional
23
 
24
  from huggingface_hub import hf_hub_download
25
+ from huggingface_hub import snapshot_download
26
+
27
 
28
 
29
  class VincieService:
 
65
  # Clona com --depth 1 para baixar apenas a vers茫o mais recente
66
  subprocess.run(["git", "clone", "--depth", "1", git_url, str(self.repo_dir)], check=True)
67
 
68
+
 
69
  def ensure_model(self, hf_token: Optional[str] = None) -> None:
70
  """Baixa o checkpoint completo e cria o link simb贸lico necess谩rio."""
71
  self.ckpt_dir.mkdir(parents=True, exist_ok=True)