Staticaliza
commited on
Commit
•
14026a4
1
Parent(s):
d762b96
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def predict(instruction, history, input, preoutput, access_key, model, temperatu
|
|
65 |
|
66 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
67 |
pre_result = f"{sy_l}{response}{sy_r}{''.join(SPECIAL_SYMBOLS)}"
|
68 |
-
pattern = re.compile(f"{sy_l}(
|
69 |
match = pattern.search(pre_result)
|
70 |
get_result = preoutput + match.group(1).strip() if match else ""
|
71 |
|
|
|
65 |
|
66 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
67 |
pre_result = f"{sy_l}{response}{sy_r}{''.join(SPECIAL_SYMBOLS)}"
|
68 |
+
pattern = re.compile(f"{sy_l}(.*){sy_r}", re.DOTALL)
|
69 |
match = pattern.search(pre_result)
|
70 |
get_result = preoutput + match.group(1).strip() if match else ""
|
71 |
|