Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,15 +16,12 @@ st.markdown("""
|
|
16 |
st.title('π Phishing URL Detection App')
|
17 |
st.write('Enter a URL to check if it is Phishing or Legitimate.')
|
18 |
|
19 |
-
# Display an illustrative image (Optional)
|
20 |
-
image = Image.open("phishing_warning.png") # Add a relevant image in your working directory
|
21 |
-
st.image(image, use_column_width=True)
|
22 |
|
23 |
-
# Input URL
|
24 |
url_input = st.text_input('Enter URL:', '')
|
25 |
|
26 |
# Hugging Face model endpoint
|
27 |
-
API_URL = 'https://huggingface.co/ayeshaishaq004/website-url-classifier/resolve/main/phishing_model.pkl'
|
28 |
|
29 |
if st.button('Check URL'):
|
30 |
if url_input:
|
|
|
16 |
st.title('π Phishing URL Detection App')
|
17 |
st.write('Enter a URL to check if it is Phishing or Legitimate.')
|
18 |
|
|
|
|
|
|
|
19 |
|
20 |
+
# Input URL
|
21 |
url_input = st.text_input('Enter URL:', '')
|
22 |
|
23 |
# Hugging Face model endpoint
|
24 |
+
API_URL = 'https://huggingface.co/ayeshaishaq004/website-url-classifier/resolve/main/phishing_model.pkl'
|
25 |
|
26 |
if st.button('Check URL'):
|
27 |
if url_input:
|