sakamoto84 commited on
Commit
f25742c
·
verified ·
1 Parent(s): 9c182eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def classify_comment_with_ng(comment):
16
  score = result["score"]
17
 
18
  if label.lower() in ["negative"]:
19
- return f"⚠ それはネガティブだよ... : {label} (スコア: {score:.2f})"
20
  else:
21
  return f"✅ ポジティブでいいね! : {label} (スコア: {score:.2f})"
22
 
@@ -25,7 +25,7 @@ iface = gr.Interface(
25
  inputs=gr.Textbox(lines=3, placeholder="コメントを入力してください"),
26
  outputs="text",
27
  title="ネガティブコメント検出くん",
28
- description="ネガティブワードをチェックするよ"
29
  )
30
 
31
  iface.launch()
 
16
  score = result["score"]
17
 
18
  if label.lower() in ["negative"]:
19
+ return f"⚠ それはネガティブだから言っちゃだめだよ! : {label} (スコア: {score:.2f})"
20
  else:
21
  return f"✅ ポジティブでいいね! : {label} (スコア: {score:.2f})"
22
 
 
25
  inputs=gr.Textbox(lines=3, placeholder="コメントを入力してください"),
26
  outputs="text",
27
  title="ネガティブコメント検出くん",
28
+ description="ネガティブコメントをチェックするよ"
29
  )
30
 
31
  iface.launch()