hackerbyhobby
commited on
more updates
Browse files
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 |
-
|
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()
|