Spaces:
Runtime error
Runtime error
File size: 411 Bytes
397bbcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
import helper
import pickle
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') |