cnmoro commited on
Commit
4dd98b8
1 Parent(s): b76aadb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def extract_embeddings_batch(texts):
105
  def compress_semantically(input_text, word_reduction_factor=0.35):
106
 
107
  num_samples = 500
108
- word_count = input_text.split()
109
 
110
  thresholds = [(1500, 80), (1000, 90), (700, 110), (500, 130), (250, 160)]
111
  for threshold, value in thresholds:
 
105
  def compress_semantically(input_text, word_reduction_factor=0.35):
106
 
107
  num_samples = 500
108
+ word_count = len(input_text.split())
109
 
110
  thresholds = [(1500, 80), (1000, 90), (700, 110), (500, 130), (250, 160)]
111
  for threshold, value in thresholds: