Spaces:
Build error
Build error
Commit
·
dcf40f8
1
Parent(s):
d7ecb3b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import requests
|
| 2 |
import pandas as pd
|
|
|
|
| 3 |
import torch
|
| 4 |
from datasets import load_dataset
|
| 5 |
from sentence_transformers.util import semantic_search
|
|
@@ -57,6 +58,7 @@ embeddings.to_csv("embeddings.csv", index=False)
|
|
| 57 |
|
| 58 |
dataset_embeddings = torch.from_numpy(embeddings.to_pandas().to_numpy()).to(torch.float)
|
| 59 |
|
|
|
|
| 60 |
question = ["How can Medicare help me?"]
|
| 61 |
output = query(question)
|
| 62 |
|
|
|
|
| 1 |
import requests
|
| 2 |
import pandas as pd
|
| 3 |
+
import numpy as np
|
| 4 |
import torch
|
| 5 |
from datasets import load_dataset
|
| 6 |
from sentence_transformers.util import semantic_search
|
|
|
|
| 58 |
|
| 59 |
dataset_embeddings = torch.from_numpy(embeddings.to_pandas().to_numpy()).to(torch.float)
|
| 60 |
|
| 61 |
+
|
| 62 |
question = ["How can Medicare help me?"]
|
| 63 |
output = query(question)
|
| 64 |
|