KGSAGAR commited on
Commit
fd947b0
·
verified ·
1 Parent(s): c72585a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
52
  Extracts and returns content between <user>...</user> tags in the given text.
53
  If multiple such sections exist, their contents are concatenated.
54
  """
55
- pattern = re.compile(r'<user>(.*?)</user>|output:', re.IGNORECASE)'
56
  matches = re.findall(pattern, text, re.DOTALL)
57
  extracted_content = '\n'.join(match.strip() for match in matches)
58
  return extracted_content
 
52
  Extracts and returns content between <user>...</user> tags in the given text.
53
  If multiple such sections exist, their contents are concatenated.
54
  """
55
+ pattern = re.compile(r'<user>(.*?)</user>|output:', re.IGNORECASE)
56
  matches = re.findall(pattern, text, re.DOTALL)
57
  extracted_content = '\n'.join(match.strip() for match in matches)
58
  return extracted_content