From 62c4d9880bbacfdb2e49e35a0034a4710eb89db0 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 7 Jan 2023 12:13:09 -0300 Subject: [PATCH] Fix galactica equations (more) --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index b9f83e2..b006764 100644 --- a/server.py +++ b/server.py @@ -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):