webomurga commited on
Commit
088addf
·
verified ·
1 Parent(s): f52d9c0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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]}")