hackerbyhobby commited on
Commit
7a051d2
·
unverified ·
1 Parent(s): 047a196

more updates

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,6 +9,7 @@ import shap
9
  import requests
10
  import json
11
  import os
 
12
 
13
  # Translator instance
14
  translator = GoogleTranslator(source="auto", target="es")
@@ -223,8 +224,8 @@ This tool classifies messages as SMiShing, Other Scam, or Legitimate using a zer
223
  (joeddav/xlm-roberta-large-xnli). It automatically detects if the text is Spanish or English.
224
  It uses SHAP for explainability and checks URLs against Google's Safe Browsing API for enhanced analysis.
225
  """,
226
- allow_flagging="never"
227
  )
228
 
229
  if __name__ == "__main__":
230
- demo.launch()
 
9
  import requests
10
  import json
11
  import os
12
+ import numpy as np
13
 
14
  # Translator instance
15
  translator = GoogleTranslator(source="auto", target="es")
 
224
  (joeddav/xlm-roberta-large-xnli). It automatically detects if the text is Spanish or English.
225
  It uses SHAP for explainability and checks URLs against Google's Safe Browsing API for enhanced analysis.
226
  """,
227
+ flagging_mode="true"
228
  )
229
 
230
  if __name__ == "__main__":
231
+ demo.launch()