jina-ai / discoart

🪩 Create Disco Diffusion artworks in one line
Other
3.84k stars 247 forks source link

`docstrings.yml` contains non-ASCII characters and `config.py` may fail to read it #185

Open srhouyu opened 1 year ago

srhouyu commented 1 year ago

When the default system encoding is not UTF-8 ( My Windows is GBK ), config.py will fail to read docstrings.yml.

https://github.com/jina-ai/discoart/blob/6bd664f203109ccd08bf06e74732cd02be5b734c/discoart/config.py#L173

I think encoding='utf8' can be added to open().