Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ def upload_file(file, model_name, split_strategy, overlap_size,chunk_size, max_
|
|
| 137 |
shutil.copyfile(file_path, destination_path) # Use shutil to copy the file
|
| 138 |
|
| 139 |
# Process files and get embeddings
|
| 140 |
-
embeddings, chunks = process_files(model_name, split_strategy,
|
| 141 |
|
| 142 |
# Perform search
|
| 143 |
results = search_embeddings(query, model_name, top_k)
|
|
|
|
| 137 |
shutil.copyfile(file_path, destination_path) # Use shutil to copy the file
|
| 138 |
|
| 139 |
# Process files and get embeddings
|
| 140 |
+
embeddings, chunks = process_files(model_name, split_strategy, 120, 0, max_tokens)
|
| 141 |
|
| 142 |
# Perform search
|
| 143 |
results = search_embeddings(query, model_name, top_k)
|