Skip to content

Commit

Permalink
safeload
Browse files Browse the repository at this point in the history
  • Loading branch information
pbcquoc committed Dec 9, 2020
1 parent 9baddaa commit baa7f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vietocr/tool/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def download_weights(id_or_url, cached=None, md5=None, quiet=False):
def download_config(id):
url = 'https://raw.githubusercontent.com/pbcquoc/vietocr/master/config/{}'.format(id)
r = requests.get(url)
config = yaml.sale_load(r.text)
config = yaml.safe_load(r.text)

return config

Expand Down

0 comments on commit baa7f46

Please sign in to comment.