feng2022 commited on
Commit
9b7abc7
1 Parent(s): 6db78d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def generate_image(seed: int, truncation_psi: float, model: nn.Module,
60
 
61
  def load_model(file_name: str, device: torch.device) -> nn.Module:
62
  path = hf_hub_download('feng2022/Time-TravelRephotography',
63
- f'models/{file_name}',
64
  use_auth_token=TOKEN)
65
  with open(path, 'rb') as f:
66
  model = pickle.load(f)['G_ema']
 
60
 
61
  def load_model(file_name: str, device: torch.device) -> nn.Module:
62
  path = hf_hub_download('feng2022/Time-TravelRephotography',
63
+ f'{file_name}',
64
  use_auth_token=TOKEN)
65
  with open(path, 'rb') as f:
66
  model = pickle.load(f)['G_ema']