Fix galactica equations (more)
This commit is contained in:
parent
eeb63b1b8a
commit
62c4d9880b
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ def fix_gpt4chan(s):
|
||||||
def fix_galactica(s):
|
def fix_galactica(s):
|
||||||
s = s.replace(r'\[', r'$')
|
s = s.replace(r'\[', r'$')
|
||||||
s = s.replace(r'\]', r'$')
|
s = s.replace(r'\]', r'$')
|
||||||
|
s = s.replace(r'\(', r'$')
|
||||||
|
s = s.replace(r'\)', r'$')
|
||||||
|
s = s.replace(r'$$', r'$')
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def generate_reply(question, temperature, max_length, inference_settings, selected_model):
|
def generate_reply(question, temperature, max_length, inference_settings, selected_model):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue