Amirizaniani commited on
Commit
f112d68
1 Parent(s): acb4e64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -148,16 +148,12 @@ def setTextVisibility(cbg, model_name_input):
148
 
149
  for cluster in clustered_sentences:
150
  highlighted_clustered_sentences.extend(highlight_words_within_cluster(cluster, model, exclude_words))
151
-
152
- for idx, sentence in enumerate(highlighted_sentences):
153
  result.append("<p><strong>"+ cbg[idx] +"</strong></p><p>"+ sentence +"</p><br/>")
154
 
155
- score = round(calculate_similarity_score(sentences))
156
-
157
- final_html = f"""<div>{result}<div style="text-align: center; font-size: 24px; font-weight: bold;">Similarity Score: {score}</div></div>"""
158
-
159
-
160
- return final_html
161
 
162
  def upload_file(files):
163
  file_paths = [file.name for file in files]
 
148
 
149
  for cluster in clustered_sentences:
150
  highlighted_clustered_sentences.extend(highlight_words_within_cluster(cluster, model, exclude_words))
151
+
152
+ for idx, sentence in enumerate(highlighted_clustered_sentences):
153
  result.append("<p><strong>"+ cbg[idx] +"</strong></p><p>"+ sentence +"</p><br/>")
154
 
155
+ return result
156
+
 
 
 
 
157
 
158
  def upload_file(files):
159
  file_paths = [file.name for file in files]