Spaces:
Sleeping
Sleeping
File size: 487 Bytes
f923391 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import streamlit as st
import helper
import pickle
import sklearn
from sklearn.feature_extraction.text import CountVectorizer
model = pickle.load(open('model.pkl', 'rb'))
st.header("Duplicate Question Pairs")
q1 = st.text_input("Enter question 1")
q2 = st.text_input("Enter question 2")
if st.button("Find"):
query = helper.query_point_creator(q1, q2)
result = model.predict(query)[0]
if result:
st.header("Duplicate")
else:
st.header("Not Duplicate") |