mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01: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):
|
||||
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
|
||||
|
||||
def generate_reply(question, temperature, max_length, inference_settings, selected_model):
|
||||
|
Loading…
Reference in New Issue
Block a user