Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def classify(text):
|
|
33 |
confidence = min(probs[pred].item(), 0.95) # 置信度依然可以控制上限
|
34 |
|
35 |
percent = round(confidence * 100, 2)
|
36 |
-
result = f"Prediction / 预测:\n{labels[pred]}\n
|
37 |
return result
|
38 |
|
39 |
#谁大选谁
|
@@ -51,7 +51,7 @@ interface = gr.Interface(
|
|
51 |
outputs=gr.Textbox(label="📊 Prediction / 预测结果"),
|
52 |
title="🧠 Manipulative Language Detector / 操纵性语言识别器",
|
53 |
description="""
|
54 |
-
🔍 This tool detects **emotionally manipulative language** in
|
55 |
|
56 |
|
57 |
---
|
|
|
33 |
confidence = min(probs[pred].item(), 0.95) # 置信度依然可以控制上限
|
34 |
|
35 |
percent = round(confidence * 100, 2)
|
36 |
+
result = f"Prediction / 预测:\n{labels[pred]}\n"
|
37 |
return result
|
38 |
|
39 |
#谁大选谁
|
|
|
51 |
outputs=gr.Textbox(label="📊 Prediction / 预测结果"),
|
52 |
title="🧠 Manipulative Language Detector / 操纵性语言识别器",
|
53 |
description="""
|
54 |
+
🔍 This tool detects **emotionally manipulative language** in Chinese or English digital communication.
|
55 |
|
56 |
|
57 |
---
|