Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,10 @@ def load_embeddings(fname: str) -> dict[tuple[str, str], list[float]]:
|
|
| 71 |
#To calculate on the fly
|
| 72 |
'''
|
| 73 |
#document_embeddings = compute_doc_embeddings(df)
|
| 74 |
-
document_embeddings = load_embeddings("https://cdn.openai.com/API/examples/data/olympics_sections_document_embeddings.csv")
|
| 75 |
#data_files = {"RadiationWikiEmbedding.csv"}dataset = load_dataset("mcbrs1/RadiationWiki", data_files=data_files)
|
| 76 |
#document_embeddings = load_embeddings("RadiationWikiEmbedding.csv")
|
| 77 |
-
|
| 78 |
|
| 79 |
def vector_similarity(x: list[float], y: list[float]) -> float:
|
| 80 |
"""
|
|
|
|
| 71 |
#To calculate on the fly
|
| 72 |
'''
|
| 73 |
#document_embeddings = compute_doc_embeddings(df)
|
| 74 |
+
#document_embeddings = load_embeddings("https://cdn.openai.com/API/examples/data/olympics_sections_document_embeddings.csv")
|
| 75 |
#data_files = {"RadiationWikiEmbedding.csv"}dataset = load_dataset("mcbrs1/RadiationWiki", data_files=data_files)
|
| 76 |
#document_embeddings = load_embeddings("RadiationWikiEmbedding.csv")
|
| 77 |
+
document_embeddings = load_embeddings("olympics_sections_document_embeddings.csv")
|
| 78 |
|
| 79 |
def vector_similarity(x: list[float], y: list[float]) -> float:
|
| 80 |
"""
|