ogawaal commited on
Commit
d211664
·
verified ·
1 Parent(s): b3fcbb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,8 +35,8 @@ if st.button("判定", key="run"):
35
  pred_class, input_ids, attention_list = classify_ma(user_input)
36
  st.markdown(f"判定結果: **{ID2CAT[pred_class]}**")
37
  if pred_class == 1:
38
- topic_dist, ll = infer_topic(user_input)
39
-
40
  words_atten = get_word_attn(input_ids, attention_list)
41
  html_hext_result = html_hext(((word, attn) for word, attn in words_atten))
42
  st.markdown(html_hext_result, unsafe_allow_html=True)
 
35
  pred_class, input_ids, attention_list = classify_ma(user_input)
36
  st.markdown(f"判定結果: **{ID2CAT[pred_class]}**")
37
  if pred_class == 1:
38
+ topic_dist,new_word_list, ll = infer_topic(user_input)
39
+ print(new_word_list) #この一文を追加
40
  words_atten = get_word_attn(input_ids, attention_list)
41
  html_hext_result = html_hext(((word, attn) for word, attn in words_atten))
42
  st.markdown(html_hext_result, unsafe_allow_html=True)