mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
fix(lint): explicit utf-8 encoding on the sherpa keywords tempfile
This commit is contained in:
parent
71a2feeade
commit
567f47f01f
1 changed files with 1 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ class _SherpaKwsEngine(_Engine):
|
|||
import tempfile
|
||||
|
||||
kw = tempfile.NamedTemporaryFile(
|
||||
mode="w", suffix=".txt", prefix="hermes-kws-", delete=False
|
||||
mode="w", suffix=".txt", prefix="hermes-kws-", delete=False, encoding="utf-8"
|
||||
)
|
||||
display = phrase.upper().replace(" ", "_")
|
||||
kw.write(" ".join(tokens[0]) + f" @{display}\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue