github-actions commited on
Commit
1d19a85
·
1 Parent(s): be84e81

Update model artifacts

Browse files
app.py CHANGED
@@ -15,7 +15,7 @@ def predict(text):
15
  proba = None
16
  if hasattr(model, "predict_proba"):
17
  proba = model.predict_proba(vec)[0]
18
- proba = { "Aman": round(proba[0]*100, 2), "Judi": round(proba[1]*100, 2) }
19
 
20
  label = "🚫 Judi Online" if pred == "judi" or pred == 1 else "✅ Aman"
21
  return {"Prediksi": label, "Probabilitas (%)": proba}
 
15
  proba = None
16
  if hasattr(model, "predict_proba"):
17
  proba = model.predict_proba(vec)[0]
18
+ proba = { "normal": round(proba[0]*100, 2), "judi": round(proba[1]*100, 2) }
19
 
20
  label = "🚫 Judi Online" if pred == "judi" or pred == 1 else "✅ Aman"
21
  return {"Prediksi": label, "Probabilitas (%)": proba}
src/__pycache__/__init__.cpython-39.pyc CHANGED
Binary files a/src/__pycache__/__init__.cpython-39.pyc and b/src/__pycache__/__init__.cpython-39.pyc differ
 
src/__pycache__/preprocessing.cpython-39.pyc CHANGED
Binary files a/src/__pycache__/preprocessing.cpython-39.pyc and b/src/__pycache__/preprocessing.cpython-39.pyc differ
 
vectorizer.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dae03efa109b46da09d119c5a6a1a899f1108e60c7a4f49cccf71e324f0ce0af
3
  size 425129
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c6dee7e0e55bebae56492c6f2ac0642af183456a12ae29ef04851c423c726ec
3
  size 425129