Spaces:
Running
Running
Update app.py
Browse files
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:
|