Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}.")
|