LilithHu commited on
Commit
ac74601
·
verified ·
1 Parent(s): e25e3be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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📊 Confidence /置信度: {percent}%"
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 English or Chinese digital communication.
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
  ---