Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from sentence_transformers import SentenceTransformer
|
3 |
|
4 |
-
model_Q = SentenceTransformer('sentence-transformers/all-
|
5 |
|
6 |
def text_to_embedding(text):
|
7 |
embedding = model_Q.encode(text)
|
|
|
1 |
import gradio as gr
|
2 |
from sentence_transformers import SentenceTransformer
|
3 |
|
4 |
+
model_Q = SentenceTransformer('sentence-transformers/all-MiniLM-L12-v2')
|
5 |
|
6 |
def text_to_embedding(text):
|
7 |
embedding = model_Q.encode(text)
|