aino813 commited on
Commit
5b40d74
1 Parent(s): bdbf479

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ MODEL_NAME = 'cl-tohoku/bert-base-japanese-whole-word-masking'
7
  descriptions = '''BERTを用いたビジネス文書のネガポジ判定。文章を入力すると、その文章のネガポジ判定と判定の信頼度を表示します。'''
8
 
9
  tokenizer = BertJapaneseTokenizer.from_pretrained(MODEL_NAME)
10
- bert_sc_ = BertForSequenceClassification.from_pretrained("models/")
11
  bert_sc = bert_sc_.to("cpu")
12
 
13
  def func(text):
7
  descriptions = '''BERTを用いたビジネス文書のネガポジ判定。文章を入力すると、その文章のネガポジ判定と判定の信頼度を表示します。'''
8
 
9
  tokenizer = BertJapaneseTokenizer.from_pretrained(MODEL_NAME)
10
+ bert_sc_ = BertForSequenceClassification.from_pretrained("./models")
11
  bert_sc = bert_sc_.to("cpu")
12
 
13
  def func(text):