mstkyvz commited on
Commit
0c1bcd6
·
1 Parent(s): edb1739

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,15 +25,15 @@ st.markdown(
25
  st.title("XSS Detector")
26
 
27
  # Kullanıcı girdisi
28
- user_input = st.text_area("XSS payload'ınızı buraya girin", height=100)
29
 
30
  # Tespit butonu
31
- if st.button("Tespit Et"):
32
  transformed_input = vectorizer.transform([user_input]).toarray()
33
  prediction = model.predict(transformed_input)
34
 
35
  # Sonucu ekranda gösterme
36
  if prediction[0] > 0.5:
37
- st.write("Bu bir XSS payload!")
38
  else:
39
- st.write("Bu bir XSS payload DEĞİL!")
 
25
  st.title("XSS Detector")
26
 
27
  # Kullanıcı girdisi
28
+ user_input = st.text_area("Enter your XSS payload here", height=100)
29
 
30
  # Tespit butonu
31
+ if st.button("Detect"):
32
  transformed_input = vectorizer.transform([user_input]).toarray()
33
  prediction = model.predict(transformed_input)
34
 
35
  # Sonucu ekranda gösterme
36
  if prediction[0] > 0.5:
37
+ st.write("It's an XSS payload!")
38
  else:
39
+ st.write("This is NOT an XSS payload!")