Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,12 @@ st.title("Typosquatting Detection App")
|
|
8 |
st.write("Enter two domains to check if one is a typosquatted variant of the other.")
|
9 |
|
10 |
domain = st.text_input("Enter the legitimate domain name:")
|
11 |
-
|
12 |
threshold = st.slider("Set detection threshold", 0.0, 1.0, 0.5)
|
13 |
|
14 |
|
15 |
if st.button("Check Typosquatting"):
|
16 |
-
inputs = [(
|
17 |
prediction = model.predict(inputs)[0]
|
18 |
print(prediction)
|
19 |
if prediction > threshold:
|
|
|
8 |
st.write("Enter two domains to check if one is a typosquatted variant of the other.")
|
9 |
|
10 |
domain = st.text_input("Enter the legitimate domain name:")
|
11 |
+
typosquat = st.text_input("Enter the potentially typosquatted domain name:")
|
12 |
threshold = st.slider("Set detection threshold", 0.0, 1.0, 0.5)
|
13 |
|
14 |
|
15 |
if st.button("Check Typosquatting"):
|
16 |
+
inputs = [(typosquat,domain)]
|
17 |
prediction = model.predict(inputs)[0]
|
18 |
print(prediction)
|
19 |
if prediction > threshold:
|