davidlee1102
Add User_Logs For Group Coursework
2f8c020
raw
history blame
417 Bytes
import streamlit as st
from emotion_model import emotion_predict
from pre_processing_data import user_capture
name = st.text_input("Enter your sentence here")
if (st.button('Submit')):
result = name.title()
try:
result_check = emotion_predict(result)
user_capture(result, result_check)
except Exception as E:
result_check = "Error"
print(E)
st.success(result_check)