Spaces:
Sleeping
Sleeping
comment it out
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
|
| 5 |
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 6 |
# Step 1 - Semantic Search
|
| 7 |
-
from sentence_transformers import SentenceTransformer
|
| 8 |
import torch
|
| 9 |
|
| 10 |
|
|
@@ -112,7 +112,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 112 |
# Call the get_top_chunks function with the original query
|
| 113 |
top_results = get_top_chunks("How does water get into the sky", chunk_embeddings, cleaned_chunks) # Complete this line
|
| 114 |
# Print the top results
|
| 115 |
-
print(top_results)
|
| 116 |
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 117 |
|
| 118 |
|
|
|
|
| 4 |
|
| 5 |
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 6 |
# Step 1 - Semantic Search
|
| 7 |
+
""from sentence_transformers import SentenceTransformer
|
| 8 |
import torch
|
| 9 |
|
| 10 |
|
|
|
|
| 112 |
# Call the get_top_chunks function with the original query
|
| 113 |
top_results = get_top_chunks("How does water get into the sky", chunk_embeddings, cleaned_chunks) # Complete this line
|
| 114 |
# Print the top results
|
| 115 |
+
print(top_results)""
|
| 116 |
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 117 |
|
| 118 |
|