hackerbyhobby commited on
Commit
7f5cb1a
·
unverified ·
1 Parent(s): 64e1f0d
Files changed (1) hide show
  1. app.py +20 -1
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()