Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pickle
|
| 3 |
+
|
| 4 |
+
model = pickle_load(open("phishing_test.pkl", "rb"))
|
| 5 |
+
|
| 6 |
+
#text/title
|
| 7 |
+
st.title("URL Checker")
|
| 8 |
+
st.subheader("Just type an URL below to see if it's safe!")
|
| 9 |
+
url_to_predict = st.textinput("URL")
|
| 10 |
+
|
| 11 |
+
prediction = model.predict([url_to_predict])
|
| 12 |
+
|
| 13 |
+
st.write(f"The URL you've entered is {prediction[0]}")
|