Skip to content

Commit

Permalink
fix: encoding specification when reading json
Browse files Browse the repository at this point in the history
  • Loading branch information
SociallyIneptWeeb committed Aug 15, 2023
1 parent eb8c147 commit 8ef036a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def process_file_upload(file):
args = parser.parse_args()

voice_models = get_current_models(rvc_models_dir)
with open(os.path.join(rvc_models_dir, 'public_models.json')) as infile:
with open(os.path.join(rvc_models_dir, 'public_models.json'), encoding='utf8') as infile:
public_models = json.load(infile)

with gr.Blocks(title='AICoverGenWebUI') as app:
Expand Down

0 comments on commit 8ef036a

Please sign in to comment.