Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"⚠
|
| 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()
|