Spaces:
Sleeping
Sleeping
hackerbyhobby
commited on
changes
Browse files
app.py
CHANGED
|
@@ -213,4 +213,23 @@ demo = gr.Interface(
|
|
| 213 |
inputs=[
|
| 214 |
gr.Textbox(
|
| 215 |
lines=3,
|
| 216 |
-
label="Paste
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
inputs=[
|
| 214 |
gr.Textbox(
|
| 215 |
lines=3,
|
| 216 |
+
label="Paste Suspicious SMS Text (English/Spanish)",
|
| 217 |
+
placeholder="Type or paste the message here..."
|
| 218 |
+
),
|
| 219 |
+
gr.Image(
|
| 220 |
+
type="pil",
|
| 221 |
+
label="Or Upload a Screenshot (Optional)"
|
| 222 |
+
)
|
| 223 |
+
],
|
| 224 |
+
outputs="json",
|
| 225 |
+
title="SMiShing & Scam Detector with Safe Browsing",
|
| 226 |
+
description="""
|
| 227 |
+
This tool classifies messages as SMiShing, Other Scam, or Legitimate using a zero-shot model
|
| 228 |
+
(joeddav/xlm-roberta-large-xnli). It automatically detects if the text is Spanish or English.
|
| 229 |
+
It uses SHAP for explainability and checks URLs against Google's Safe Browsing API for enhanced analysis.
|
| 230 |
+
""",
|
| 231 |
+
flagging_mode="auto"
|
| 232 |
+
)
|
| 233 |
+
|
| 234 |
+
if __name__ == "__main__":
|
| 235 |
+
demo.launch()
|