chgrdj commited on
Commit
6ac60c6
·
verified ·
1 Parent(s): bd2ad61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ sim_domain = st.text_input("Enter the potentially typosquatted domain name:")
13
  if st.button("Check Typosquatting"):
14
  inputs = [(domain, sim_domain)]
15
  prediction = model.predict(inputs)[0]
16
-
17
  if prediction > 0.5:
18
- st.success(f"The model predicts that '{sim_domain}' is likely a typosquatted version of '{domain}'.")
19
  else:
20
- st.warning(f"The model predicts that '{sim_domain}' is NOT likely a typosquatted version of '{domain}'.")
 
13
  if st.button("Check Typosquatting"):
14
  inputs = [(domain, sim_domain)]
15
  prediction = model.predict(inputs)[0]
16
+ print(prediction)
17
  if prediction > 0.5:
18
+ st.success(f"The model predicts that '{sim_domain}' is likely a typosquatted version of '{domain}' with {prediction}.")
19
  else:
20
+ st.warning(f"The model predicts that '{sim_domain}' is NOT likely a typosquatted version of '{domain}' with {prediction}.")