feng2022 commited on
Commit
6d3e964
1 Parent(s): 9bf1133

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'README.md',
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'models/{file_name}',
64
  use_auth_token=TOKEN)
65
  with open(path, 'rb') as f:
66
  model = pickle.load(f)['G_ema']