feat: sentence-encoder-multilingual
Browse files
app.py
CHANGED
@@ -58,7 +58,8 @@ def text_to_chunks(texts, word_length=150, start_page=1):
|
|
58 |
class SemanticSearch:
|
59 |
|
60 |
def __init__(self):
|
61 |
-
self.use = hub.load('https://tfhub.dev/google/universal-sentence-encoder/4')
|
|
|
62 |
#self.use = hub.load('/app/models/')
|
63 |
self.fitted = False
|
64 |
|
|
|
58 |
class SemanticSearch:
|
59 |
|
60 |
def __init__(self):
|
61 |
+
#self.use = hub.load('https://tfhub.dev/google/universal-sentence-encoder/4')
|
62 |
+
self.use = hub.load('https://tfhub.dev/google/universal-sentence-encoder-multilingual-qa/3')
|
63 |
#self.use = hub.load('/app/models/')
|
64 |
self.fitted = False
|
65 |
|