Spaces:
Sleeping
Sleeping
Deleted comment
Browse files
app.py
CHANGED
|
@@ -35,7 +35,6 @@ cleaned_chunks = preprocess_text(recycling_text, aqi_text)
|
|
| 35 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 36 |
|
| 37 |
def create_embeddings(text_chunks):
|
| 38 |
-
# Convert each text chunk into a vector embedding and store as a tensor
|
| 39 |
chunk_embeddings = model.encode(text_chunks, convert_to_tensor=True) # Replace ... with the text_chunks list
|
| 40 |
|
| 41 |
# Print the chunk embeddings
|
|
|
|
| 35 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 36 |
|
| 37 |
def create_embeddings(text_chunks):
|
|
|
|
| 38 |
chunk_embeddings = model.encode(text_chunks, convert_to_tensor=True) # Replace ... with the text_chunks list
|
| 39 |
|
| 40 |
# Print the chunk embeddings
|