import streamlit as st from emotion_model import emotion_predict name = st.text_input("Enter your sentence here") if (st.button('Submit')): result = name.title() a = "Hi, this is morning bro, happy to see you" # try: # result_check = emotion_predict(a) # except Exception as E: # result_check = "Error" # print(E) st.success(a)