hesha commited on
Commit
69f3a1d
1 Parent(s): 05eb823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
6
- model = AutoModel.from_pretrained('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
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]