qfuxa commited on
Commit
6ee91c3
·
2 Parent(s): 0ff6067 f52a5ae

Merge pull request #15 from in-c0/patch-1

Browse files

Specify encoding to ensure Python reads file as UTF-8

Files changed (1) hide show
  1. whisper_fastapi_online_server.py +1 -1
whisper_fastapi_online_server.py CHANGED
@@ -43,7 +43,7 @@ args = parser.parse_args()
43
  asr, tokenizer = backend_factory(args)
44
 
45
  # Load demo HTML for the root endpoint
46
- with open("src/live_transcription.html", "r") as f:
47
  html = f.read()
48
 
49
 
 
43
  asr, tokenizer = backend_factory(args)
44
 
45
  # Load demo HTML for the root endpoint
46
+ with open("src/live_transcription.html", "r", encoding="utf-8") as f:
47
  html = f.read()
48
 
49