Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,8 +90,8 @@ def split_main_and_feedback(llm_output):
|
|
| 90 |
Splits the LLM output at the first appearance of a '---' that is surely meant as a feedback divider.
|
| 91 |
"""
|
| 92 |
import re
|
| 93 |
-
# Split at first '
|
| 94 |
-
m = re.search(r'(?:^|\n)
|
| 95 |
if m:
|
| 96 |
idx = m.start()
|
| 97 |
main_message = llm_output[:idx].strip()
|
|
|
|
| 90 |
Splits the LLM output at the first appearance of a '---' that is surely meant as a feedback divider.
|
| 91 |
"""
|
| 92 |
import re
|
| 93 |
+
# Split at first '—' line; this is how ChatGPT-5 renders ---
|
| 94 |
+
m = re.search(r'(?:^|\n)—(?:\n|$)', llm_output)
|
| 95 |
if m:
|
| 96 |
idx = m.start()
|
| 97 |
main_message = llm_output[:idx].strip()
|