File size: 423 Bytes
6360f05
 
3b096e3
6360f05
3b096e3
c23c5f8
6360f05
3b096e3
 
 
 
 
 
f0372d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
    user_response = st.text_input("Please give your emotion that you are thinking is correct")