Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def create_embeddings(text_chunks):
|
|
| 109 |
return chunk_embeddings
|
| 110 |
|
| 111 |
# Call the create_embeddings function and store the result in a new chunk_embeddings variable
|
| 112 |
-
chunk_embeddings = create_embeddings(
|
| 113 |
|
| 114 |
# Define a function to find the most relevant text chunks for a given query, chunk_embeddings, and text_chunks
|
| 115 |
def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
|
|
| 109 |
return chunk_embeddings
|
| 110 |
|
| 111 |
# Call the create_embeddings function and store the result in a new chunk_embeddings variable
|
| 112 |
+
chunk_embeddings = create_embeddings(brand_chunks)
|
| 113 |
|
| 114 |
# Define a function to find the most relevant text chunks for a given query, chunk_embeddings, and text_chunks
|
| 115 |
def get_top_chunks(query, chunk_embeddings, text_chunks):
|