mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Fix galactica equations (more)
This commit is contained in:
parent
eeb63b1b8a
commit
62c4d9880b
@ -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…
Reference in New Issue
Block a user