Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ pad=np.pad
|
|
19 |
def load_checkpoints(config_path, checkpoint_path, cpu=False):
|
20 |
|
21 |
with open(config_path) as f:
|
22 |
-
config = yaml.load(f)
|
23 |
|
24 |
generator = OcclusionAwareGenerator(
|
25 |
**config["model_params"]["generator_params"], **config["model_params"]["common_params"]
|
|
|
19 |
def load_checkpoints(config_path, checkpoint_path, cpu=False):
|
20 |
|
21 |
with open(config_path) as f:
|
22 |
+
config = yaml.load(f, Loader=yaml.SafeLoader)
|
23 |
|
24 |
generator = OcclusionAwareGenerator(
|
25 |
**config["model_params"]["generator_params"], **config["model_params"]["common_params"]
|