Spaces:
Sleeping
Sleeping
HonestAnnie
commited on
Commit
•
10f043b
1
Parent(s):
4295f9e
tuk# Please enter the commit message for your changes. Lines starting
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from sentence_transformers import SentenceTransformer
|
|
9 |
|
10 |
from spaces import GPU
|
11 |
|
12 |
-
@GPU
|
13 |
def get_embeddings(text, task):
|
14 |
model = SentenceTransformer("Linq-AI-Research/Linq-Embed-Mistral", use_auth_token=os.getenv("HF_TOKEN"))
|
15 |
task = "Given a question, retrieve passages that answer the question"
|
|
|
9 |
|
10 |
from spaces import GPU
|
11 |
|
12 |
+
@spaces.GPU
|
13 |
def get_embeddings(text, task):
|
14 |
model = SentenceTransformer("Linq-AI-Research/Linq-Embed-Mistral", use_auth_token=os.getenv("HF_TOKEN"))
|
15 |
task = "Given a question, retrieve passages that answer the question"
|