Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,13 @@ st.title("Typosquatting Detection App")
|
|
6 |
st.write("Enter two domains to check if one is a typosquatted variant of the other.")
|
7 |
|
8 |
# Model selection
|
9 |
-
model_choice = st.selectbox("Choose a model for detection:", ["CE-typosquat-detect-Canine", "CE-typosquat-detect"])
|
10 |
-
|
11 |
-
# Load model after selection
|
12 |
-
if model_choice:
|
13 |
-
model_path = f"./{model_choice}"
|
14 |
-
model = CrossEncoder(model_path)
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
# User inputs for domains and threshold
|
17 |
domain = st.text_input("Enter the legitimate domain name:")
|
18 |
typosquat = st.text_input("Enter the potentially typosquatted domain name:")
|
|
|
6 |
st.write("Enter two domains to check if one is a typosquatted variant of the other.")
|
7 |
|
8 |
# Model selection
|
9 |
+
# model_choice = st.selectbox("Choose a model for detection:", ["CE-typosquat-detect-Canine", "CE-typosquat-detect"])
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
# # Load model after selection
|
12 |
+
# if model_choice:
|
13 |
+
# model_path = f"./{model_choice}"
|
14 |
+
# model = CrossEncoder(model_path)
|
15 |
+
model_choice="CE-typosquat-detect-Canine"
|
16 |
# User inputs for domains and threshold
|
17 |
domain = st.text_input("Enter the legitimate domain name:")
|
18 |
typosquat = st.text_input("Enter the potentially typosquatted domain name:")
|