sonoisa commited on
Commit
2d840c5
1 Parent(s): 9cabb8c

Change model to v2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(