Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def get_splade_cocondenser_representation(text):
|
|
125 |
|
126 |
info_output = f"" # Line 1
|
127 |
info_output += f"Total non-zero terms in vector: {len(indices)}\n" # Line 2 (and onwards for sparsity)
|
128 |
-
|
129 |
|
130 |
return formatted_output, info_output
|
131 |
|
@@ -183,7 +183,7 @@ def get_splade_lexical_representation(text):
|
|
183 |
|
184 |
info_output = f"" # Line 1
|
185 |
info_output += f"Total non-zero terms in vector: {len(indices)}\n" # Line 2 (and onwards for sparsity)
|
186 |
-
|
187 |
|
188 |
return formatted_output, info_output
|
189 |
|
|
|
125 |
|
126 |
info_output = f"" # Line 1
|
127 |
info_output += f"Total non-zero terms in vector: {len(indices)}\n" # Line 2 (and onwards for sparsity)
|
128 |
+
|
129 |
|
130 |
return formatted_output, info_output
|
131 |
|
|
|
183 |
|
184 |
info_output = f"" # Line 1
|
185 |
info_output += f"Total non-zero terms in vector: {len(indices)}\n" # Line 2 (and onwards for sparsity)
|
186 |
+
|
187 |
|
188 |
return formatted_output, info_output
|
189 |
|