LilithHu commited on
Commit
9c7d77b
Β·
verified Β·
1 Parent(s): ac74601

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -45,15 +45,25 @@ interface = gr.Interface(
45
  fn=classify,
46
  inputs=gr.Textbox(
47
  lines=4,
48
- placeholder="Enter a sentence in English or Chinese... / θΎ“ε…₯θ‹±ζ–‡ζˆ–δΈ­ζ–‡ε₯子",
49
  label="πŸ“ Input Text / θΎ“ε…₯ζ–‡ζœ¬"
50
  ),
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
  ---
58
 
59
  πŸ“Œ **Disclaimer / ε…θ΄£ε£°ζ˜ŽοΌš**
 
45
  fn=classify,
46
  inputs=gr.Textbox(
47
  lines=4,
48
+ placeholder="Enter text in English or Chinese... / θΎ“ε…₯δΈ­ζ–‡ζˆ–θ‹±ζ–‡ε₯子",
49
  label="πŸ“ Input Text / θΎ“ε…₯ζ–‡ζœ¬"
50
  ),
51
  outputs=gr.Textbox(label="πŸ“Š Prediction / ι’„ζ΅‹η»“ζžœ"),
52
+ title="πŸ” Manipulative Language Detector / ζ“ηΊ΅ζ€§θ―­θ¨€θ―†εˆ«ε™¨",
53
+ description="πŸ§ͺ θΎ“ε…₯θ‹±ζ–‡ζˆ–δΈ­ζ–‡ε₯ε­οΌŒη³»η»Ÿε°†εˆ€ζ–­ε…Άζ˜―ε¦εŒ…ε«ζ“ηΊ΅ζ€§θ―­θ¨€γ€‚\nEnter a sentence in English or Chinese to detect if it's manipulative.",
54
+ examples=[
55
+ ["If you really cared, you'd do what I say."],
56
+ ["δ½ δΈηˆ±ζˆ‘ε°±θ―ζ˜Žη»™ζˆ‘ηœ‹οΌ"],
57
+ ["δ»Šε€©ηš„ε€©ζ°”ηœŸδΈι”™γ€‚"]
58
+ ]
59
  πŸ” This tool detects **emotionally manipulative language** in Chinese or English digital communication.
60
 
61
 
62
+ outputs="text",
63
+
64
+ )
65
+
66
+ interface.launch()
67
  ---
68
 
69
  πŸ“Œ **Disclaimer / ε…θ΄£ε£°ζ˜ŽοΌš**