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() | |
try: | |
result_check = emotion_predict(result) | |
except Exception as E: | |
result_check = "Error" | |
print(E) | |
st.success(result_check) | |