DawnC commited on
Commit
bf35501
1 Parent(s): 761ce54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ class ModelManager:
175
  if self._breed_model is None:
176
  self._breed_model = BaseModel(
177
  num_classes=len(dog_breeds),
178
- device=self.device # 使用我們的device屬性
179
  ).to(self.device)
180
 
181
  checkpoint = torch.load(
 
175
  if self._breed_model is None:
176
  self._breed_model = BaseModel(
177
  num_classes=len(dog_breeds),
178
+ device=self.device
179
  ).to(self.device)
180
 
181
  checkpoint = torch.load(