chgrdj commited on
Commit
8deef9c
·
verified ·
1 Parent(s): 90f73ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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:")