Spaces:
Running
Running
Change model to v2
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def normalize_neologd(s):
|
|
69 |
s = unicode_normalize("!”#$%&’()*+,-./:;<>?@[¥]^_`{|}〜", s) # keep =,・,「,」
|
70 |
s = re.sub("[’]", "'", s)
|
71 |
s = re.sub("[”]", '"', s)
|
72 |
-
s = s.lower()
|
73 |
return s
|
74 |
|
75 |
|
@@ -146,7 +146,7 @@ description_text = st.empty()
|
|
146 |
|
147 |
if "model" not in st.session_state:
|
148 |
description_text.text("...モデル読み込み中...")
|
149 |
-
model = SentenceBertJapanese("sonoisa/sentence-bert-base-ja-mean-tokens")
|
150 |
st.session_state.model = model
|
151 |
|
152 |
pyminizip.uncompress(
|
|
|
69 |
s = unicode_normalize("!”#$%&’()*+,-./:;<>?@[¥]^_`{|}〜", s) # keep =,・,「,」
|
70 |
s = re.sub("[’]", "'", s)
|
71 |
s = re.sub("[”]", '"', s)
|
72 |
+
#s = s.lower()
|
73 |
return s
|
74 |
|
75 |
|
|
|
146 |
|
147 |
if "model" not in st.session_state:
|
148 |
description_text.text("...モデル読み込み中...")
|
149 |
+
model = SentenceBertJapanese("sonoisa/sentence-bert-base-ja-mean-tokens-v2")
|
150 |
st.session_state.model = model
|
151 |
|
152 |
pyminizip.uncompress(
|