Spaces:
Sleeping
Sleeping
xxxxxx
commited on
Commit
·
7e080a1
1
Parent(s):
583a758
update
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ with col1:
|
|
61 |
if text_input:
|
62 |
with st.spinner("正在分析..."):
|
63 |
results = classify_text(text_input)
|
64 |
-
|
65 |
for model, result in results.items():
|
66 |
st.subheader(f"{model.upper()} 模型分类结果:")
|
67 |
label = "垃圾信息" if result["label"] == "normal" else "正常信息"
|
|
|
61 |
if text_input:
|
62 |
with st.spinner("正在分析..."):
|
63 |
results = classify_text(text_input)
|
64 |
+
st.json(results)
|
65 |
for model, result in results.items():
|
66 |
st.subheader(f"{model.upper()} 模型分类结果:")
|
67 |
label = "垃圾信息" if result["label"] == "normal" else "正常信息"
|