Skip to content

Commit

Permalink
PATCH: 暂时禁用 LaTeX 渲染
Browse files Browse the repository at this point in the history
check #1102
  • Loading branch information
Keldos-Li committed May 7, 2024
1 parent a66696f commit a5c62c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ def retrieve_proxy(proxy=None):
{"left": "\\(", "right": "\\)", "display": False},
{"left": "\\[", "right": "\\]", "display": True},
]
# ![IMPORTANT] PATCH gradio 4.26, disable latex for now
user_latex_option = "disabled"
latex_delimiters_set = []

# 处理advance docs
advance_docs = defaultdict(lambda: defaultdict(dict))
Expand Down

0 comments on commit a5c62c1

Please sign in to comment.