jgyasu commited on
Commit
13a6069
1 Parent(s): 9618240

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,8 +43,8 @@ def model(prompt):
43
  sentence = prompt
44
  paraphrased_sentences = generate_paraphrase(sentence)
45
  common_grams = find_common_subsequences(sentence, paraphrased_sentences)
46
- highlighted_user_prompt = highlight_common_words(common_grams, [sentence]) # Pass the sentence as a list
47
- highlighted_paraphrased_sentences = highlight_common_words(common_grams, paraphrased_sentences) # Fix parameter order
48
  discarded_sentences = []
49
  tree = generate_plot(sentence)
50
  return highlighted_user_prompt, highlighted_paraphrased_sentences, discarded_sentences, tree
 
43
  sentence = prompt
44
  paraphrased_sentences = generate_paraphrase(sentence)
45
  common_grams = find_common_subsequences(sentence, paraphrased_sentences)
46
+ highlighted_user_prompt = highlight_common_words(common_grams, [sentence], "User Prompt (Highlighted and Numbered)") # Pass the sentence as a list
47
+ highlighted_paraphrased_sentences = highlight_common_words(common_grams, paraphrased_sentences, "Paraphrased Sentences") # Fix parameter order
48
  discarded_sentences = []
49
  tree = generate_plot(sentence)
50
  return highlighted_user_prompt, highlighted_paraphrased_sentences, discarded_sentences, tree