chgrdj commited on
Commit
49d7e4e
·
verified ·
1 Parent(s): 8deef9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ st.write("Enter two domains to check if one is a typosquatted variant of the oth
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:")
19
  threshold = st.slider("Set detection threshold", 0.0, 1.0, 0.5)
 
13
  # model_path = f"./{model_choice}"
14
  # model = CrossEncoder(model_path)
15
  model_choice="CE-typosquat-detect-Canine"
16
+ model_path = f"./{model_choice}"
17
+ model = CrossEncoder(model_path)
18
  domain = st.text_input("Enter the legitimate domain name:")
19
  typosquat = st.text_input("Enter the potentially typosquatted domain name:")
20
  threshold = st.slider("Set detection threshold", 0.0, 1.0, 0.5)