Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from transformers import AutoTokenizer, AutoModel
|
3 |
import torch
|
4 |
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
6 |
-
model = AutoModel.from_pretrained('
|
7 |
|
8 |
def mean_pooling(model_output, attention_mask):
|
9 |
token_embeddings = model_output[0]
|
|
|
2 |
from transformers import AutoTokenizer, AutoModel
|
3 |
import torch
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained('intfloat/multilingual-e5-large')
|
6 |
+
model = AutoModel.from_pretrained('intfloat/multilingual-e5-large')
|
7 |
|
8 |
def mean_pooling(model_output, attention_mask):
|
9 |
token_embeddings = model_output[0]
|