Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,9 +69,9 @@ if user_input == "":
|
|
| 69 |
|
| 70 |
y_score = pred([user_input])
|
| 71 |
if y_score[0] < 0.5:
|
| 72 |
-
st.success(f"
|
| 73 |
else:
|
| 74 |
-
st.error(f"
|
| 75 |
|
| 76 |
st.subheader("SHAP 分句可解释性分析")
|
| 77 |
try:
|
|
|
|
| 69 |
|
| 70 |
y_score = pred([user_input])
|
| 71 |
if y_score[0] < 0.5:
|
| 72 |
+
st.success(f"该文本是机器生成的概率为 {y_score[0]*100:.2f}%", icon="🧑🏻💻")
|
| 73 |
else:
|
| 74 |
+
st.error(f"该文本是机器生成的概率为 {y_score[0]*100:.2f}%", icon="🤖")
|
| 75 |
|
| 76 |
st.subheader("SHAP 分句可解释性分析")
|
| 77 |
try:
|