chgrdj commited on
Commit
58bcc6b
·
verified ·
1 Parent(s): 8a400fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- sim_domain = 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 = [(sim_domain,domain)]
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: