Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,6 @@ if st.button("判定", key="run"):
|
|
| 32 |
if not user_input:
|
| 33 |
st.warning("入力が空です。何か入力してください。")
|
| 34 |
else:
|
| 35 |
-
st.markdown(attention_text)
|
| 36 |
-
st.divider()
|
| 37 |
pred_class, input_ids, attention_list = classify_ma(user_input)
|
| 38 |
st.markdown(f"判定結果: **{ID2CAT[pred_class]}**")
|
| 39 |
if pred_class == 1:
|
|
@@ -46,6 +44,10 @@ if st.button("判定", key="run"):
|
|
| 46 |
data = topic_dist.reshape(-1, 1)
|
| 47 |
st.plotly_chart(heatmap(data), use_container_width=True)
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
st.divider()
|
| 51 |
st.markdown(provide_by)
|
|
|
|
| 32 |
if not user_input:
|
| 33 |
st.warning("入力が空です。何か入力してください。")
|
| 34 |
else:
|
|
|
|
|
|
|
| 35 |
pred_class, input_ids, attention_list = classify_ma(user_input)
|
| 36 |
st.markdown(f"判定結果: **{ID2CAT[pred_class]}**")
|
| 37 |
if pred_class == 1:
|
|
|
|
| 44 |
data = topic_dist.reshape(-1, 1)
|
| 45 |
st.plotly_chart(heatmap(data), use_container_width=True)
|
| 46 |
|
| 47 |
+
st.divider()
|
| 48 |
+
st.markdown(attention_text)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
|
| 52 |
st.divider()
|
| 53 |
st.markdown(provide_by)
|