KGSAGAR commited on
Commit
6cb0bda
·
verified ·
1 Parent(s): 1fb3ed0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(r'output:\s*:\s*(.*)', re.IGNORECASE | re.DOTALL)
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(r'output:\s*(.*)', re.IGNORECASE | re.DOTALL)
62
  match = pattern.search(text)
63
  if match:
64
  # Return the captured group, which is the content after 'output'