annikwag commited on
Commit
fd2caea
·
verified ·
1 Parent(s): e92a323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -161,10 +161,10 @@ lexical_all = results[1]
161
 
162
  # 2) Filter out content < 20 chars (as intermediate fix to problem that e.g. super short paragraphs with few chars get high similarity score)
163
  semantic_all = [
164
- r for r in semantic_all if len(r.payload["page_content"]) >= 70
165
  ]
166
  lexical_all = [
167
- r for r in lexical_all if len(r.payload["page_content"]) >= 70
168
  ]
169
 
170
  # 2) Apply a threshold to SEMANTIC results (score >= 0.4)
 
161
 
162
  # 2) Filter out content < 20 chars (as intermediate fix to problem that e.g. super short paragraphs with few chars get high similarity score)
163
  semantic_all = [
164
+ r for r in semantic_all if len(r.payload["page_content"]) >= 20
165
  ]
166
  lexical_all = [
167
+ r for r in lexical_all if len(r.payload["page_content"]) >= 20
168
  ]
169
 
170
  # 2) Apply a threshold to SEMANTIC results (score >= 0.4)