Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
64 |
-
f'
|
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']
|