Merge pull request #15 from in-c0/patch-1
Browse filesSpecify encoding to ensure Python reads file as UTF-8
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 |
|