mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
* Fix bug causing Hot Reload failure in code containing non-English languages due to missing encoding specification (#8070) * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
72f4ca88ab
commit
5d9db89aa6
5
.changeset/easy-symbols-pick.md
Normal file
5
.changeset/easy-symbols-pick.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix causing Hot Reload (#8070)
|
@ -169,7 +169,7 @@ def _remove_no_reload_codeblocks(file_path: str):
|
||||
file_path (str): The path to the file to remove the no_reload code blocks from.
|
||||
"""
|
||||
|
||||
with open(file_path) as file:
|
||||
with open(file_path, encoding="utf-8") as file:
|
||||
code = file.read()
|
||||
|
||||
tree = ast.parse(code)
|
||||
|
Loading…
Reference in New Issue
Block a user