MixoMax commited on
Commit
e59119f
1 Parent(s): ecd32f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,8 +4,7 @@ from tensorflow_text import SentencepieceTokenizer
4
  import gradio as gr
5
  import math
6
 
7
- model_url = "https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3"
8
- model = hub.load(model_url)
9
 
10
  def embed_text(text: str) -> dict:
11
  embeddings = model(text)
 
4
  import gradio as gr
5
  import math
6
 
7
+ model = hub.load("./model")
 
8
 
9
  def embed_text(text: str) -> dict:
10
  embeddings = model(text)