Skip to content

Commit

Permalink
use yaml.safe_load()
Browse files Browse the repository at this point in the history
TypeError: load() missing 1 required positional argument: 'Loader'
  • Loading branch information
zeke committed May 16, 2022
1 parent c848865 commit a2f24cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def predict(self,
opt.driving_audio = str(driving_audio)
opt.id = talking_head
with open(join('config', opt.id + '.yaml')) as f:
config = yaml.load(f)
config = yaml.safe_load(f)
data_root = join('data', opt.id)

############################ Hyper Parameters #############################
Expand Down

0 comments on commit a2f24cf

Please sign in to comment.