Spaces:
Runtime error
Runtime error
reset texts
Browse files
utils.py
CHANGED
|
@@ -339,6 +339,7 @@ def batch_embed(
|
|
| 339 |
if len(embeds) > upload_batch_size:
|
| 340 |
push_to_repo(repo, last_count, current_count, embeds, texts)
|
| 341 |
embeds = []
|
|
|
|
| 342 |
last_count = current_count
|
| 343 |
|
| 344 |
# Provide updates
|
|
|
|
| 339 |
if len(embeds) > upload_batch_size:
|
| 340 |
push_to_repo(repo, last_count, current_count, embeds, texts)
|
| 341 |
embeds = []
|
| 342 |
+
texts = []
|
| 343 |
last_count = current_count
|
| 344 |
|
| 345 |
# Provide updates
|