Spaces:
Sleeping
Sleeping
Commit
·
62fb42a
1
Parent(s):
6b0976d
modified path for model
Browse files
main.py
CHANGED
@@ -3,7 +3,7 @@ from flask import request
|
|
3 |
from sentence_transformers import SentenceTransformer
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
-
model = SentenceTransformer('
|
7 |
|
8 |
@app.route("/embedding", methods=['POST'])
|
9 |
def embedding():
|
|
|
3 |
from sentence_transformers import SentenceTransformer
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
+
model = SentenceTransformer('embedding_model', trust_remote_code=True)
|
7 |
|
8 |
@app.route("/embedding", methods=['POST'])
|
9 |
def embedding():
|