Update modeling_GOT.py
#36
by
lijicheng168
- opened
- modeling_GOT.py +2 -2
modeling_GOT.py
CHANGED
@@ -856,10 +856,10 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
856 |
from .render_tools import content_mmd_to_html
|
857 |
html_path_2 = save_render_file
|
858 |
right_num = outputs.count('\\right')
|
859 |
-
left_num = outputs.count('
|
860 |
|
861 |
if right_num != left_num:
|
862 |
-
outputs = outputs.replace('
|
863 |
|
864 |
|
865 |
outputs = outputs.replace('"', '``').replace('$', '')
|
|
|
856 |
from .render_tools import content_mmd_to_html
|
857 |
html_path_2 = save_render_file
|
858 |
right_num = outputs.count('\\right')
|
859 |
+
left_num = outputs.count('\\left')
|
860 |
|
861 |
if right_num != left_num:
|
862 |
+
outputs = outputs.replace('\\left(', '(').replace('\\right)', ')').replace('\\left[', '[').replace('\\right]', ']').replace('\\left{', '{').replace('\\right}', '}').replace('\\left|', '|').replace('\\right|', '|').replace('\\left.', '.').replace('\\right.', '.')
|
863 |
|
864 |
|
865 |
outputs = outputs.replace('"', '``').replace('$', '')
|