ombrajoe commited on
Commit
5e7cde3
Β·
verified Β·
1 Parent(s): 87479ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ class LeffaPredictor:
10
  def __init__(self):
11
  # Carica i pesi del modello
12
  # Sostituisci 'weights.pth' con il file del modello Leffa
13
- self.model = torch.load("weights.pth", map_location=torch.device('cpu'))
14
 
15
  def leffa_predict_vt(self, human_img_path, garment_img_path, garment_type):
16
  # Simula il processo del modello (sostituisci con la logica reale)
 
10
  def __init__(self):
11
  # Carica i pesi del modello
12
  # Sostituisci 'weights.pth' con il file del modello Leffa
13
+ self.model = torch.load("virtual_tryon_dc.pth", map_location=torch.device('cpu'))
14
 
15
  def leffa_predict_vt(self, human_img_path, garment_img_path, garment_type):
16
  # Simula il processo del modello (sostituisci con la logica reale)