import streamlit as st import joblib # Load model and vectorizer model = joblib.load('advice_model.pkl') vectorizer = joblib.load('vectorizer.pkl') # Streamlit app st.title('Advice on How to Talk to Girls π¬β€οΈ') st.write('Enter your scenario below and get advice!') user_input = st.text_area("Your Scenario:") if st.button('Get Advice'): if user_input: X = vectorizer.transform([user_input]) prediction = model.predict(X) st.write(f'Advice: {prediction[0]}') else: st.write('Please enter a scenario.') # Styling the app st.markdown(""" """, unsafe_allow_html=True) st.markdown("