ford442 commited on
Commit
a111fd9
·
verified ·
1 Parent(s): 457b416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map='balanced')
83
 
84
  def filter_text(text):
85
  """Filters out the text up to and including 'Rewritten Prompt:'."""
86
- phrase = "rewritten prompt : "
87
  pattern = f"(.*?){re.escape(phrase)}(.*)"
88
  match = re.search(pattern, text)
89
  # match = re.search(pattern, text,flags=re.DOTALL)
 
83
 
84
  def filter_text(text):
85
  """Filters out the text up to and including 'Rewritten Prompt:'."""
86
+ phrase = "Rewritten Prompt: "
87
  pattern = f"(.*?){re.escape(phrase)}(.*)"
88
  match = re.search(pattern, text)
89
  # match = re.search(pattern, text,flags=re.DOTALL)