Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 58 |
If 'output' is not found, returns an empty string.
|
| 59 |
"""
|
| 60 |
# Define the regular expression pattern to match 'output' and capture everything after it
|
| 61 |
-
pattern = re.compile(
|
| 62 |
match = pattern.search(text)
|
| 63 |
if match:
|
| 64 |
# Return the captured group, which is the content after 'output'
|
|
|
|
| 58 |
If 'output' is not found, returns an empty string.
|
| 59 |
"""
|
| 60 |
# Define the regular expression pattern to match 'output' and capture everything after it
|
| 61 |
+
pattern = re.compile('<user>(.*?)</user>', re.IGNORECASE | re.DOTALL)
|
| 62 |
match = pattern.search(text)
|
| 63 |
if match:
|
| 64 |
# Return the captured group, which is the content after 'output'
|