Spaces:
Sleeping
Sleeping
robinroy03
commited on
Commit
•
26d86c2
1
Parent(s):
05411e6
main.py - download model
Browse files
main.py
CHANGED
@@ -5,8 +5,8 @@ from sentence_transformers import SentenceTransformer
|
|
5 |
import os
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
-
model = SentenceTransformer('embedding_model', trust_remote_code=True)
|
9 |
os.environ["TRANSFORMERS_CACHE"] = "/.cache"
|
|
|
10 |
|
11 |
@app.route("/embedding", methods=['POST'])
|
12 |
def embedding():
|
|
|
5 |
import os
|
6 |
|
7 |
app = Flask(__name__)
|
|
|
8 |
os.environ["TRANSFORMERS_CACHE"] = "/.cache"
|
9 |
+
model = SentenceTransformer('Alibaba-NLP/gte-large-en-v1.5', trust_remote_code=True)
|
10 |
|
11 |
@app.route("/embedding", methods=['POST'])
|
12 |
def embedding():
|