feng2022 commited on
Commit
3ce9990
1 Parent(s): be55a62

Update app.py

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