File size: 417 Bytes
6360f05 3b096e3 5f275da 6360f05 3b096e3 c23c5f8 6360f05 3b096e3 2f8c020 3b096e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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)
|