Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ from tensorflow_text import SentencepieceTokenizer
|
|
| 4 |
import gradio as gr
|
| 5 |
import math
|
| 6 |
|
| 7 |
-
|
| 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)
|