Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def preprocess_text(text):
|
|
| 42 |
# Return the cleaned_chunks
|
| 43 |
return cleaned_chunks
|
| 44 |
|
| 45 |
-
cleaned_chunks = preprocess_text(
|
| 46 |
|
| 47 |
|
| 48 |
# Load the pre-trained embedding model that converts text to vectors
|
|
@@ -100,7 +100,6 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 100 |
# Return the list of most relevant chunks
|
| 101 |
return top_chunks
|
| 102 |
|
| 103 |
-
cleaned_chunks = preprocess_text(poverty_and_education)
|
| 104 |
# Print the top results
|
| 105 |
print(top_results)
|
| 106 |
|
|
|
|
| 42 |
# Return the cleaned_chunks
|
| 43 |
return cleaned_chunks
|
| 44 |
|
| 45 |
+
cleaned_chunks = preprocess_text(poverty_and_education)
|
| 46 |
|
| 47 |
|
| 48 |
# Load the pre-trained embedding model that converts text to vectors
|
|
|
|
| 100 |
# Return the list of most relevant chunks
|
| 101 |
return top_chunks
|
| 102 |
|
|
|
|
| 103 |
# Print the top results
|
| 104 |
print(top_results)
|
| 105 |
|