Spaces:
Runtime error
Runtime error
shawarmabytes
commited on
Commit
•
9600adb
1
Parent(s):
1dbf6ec
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,12 @@ emo = st.text_input("Enter a text/phrase/sentence. A corresponding song will be
|
|
52 |
st.sidebar.subheader("Model Description")
|
53 |
st.sidebar.write("This application uses the DistilBERT model, a distilled version of BERT. The BERT framework uses a bidirectional transformer that allows it to learn the context of a word based on the left and right of the word. According to a paper by V. Sanh, et al., DistilBERT can \"reduce the size of a BERT model by 40%, while retaining 97% of its language understanding capabilities, and being 60% faster.\" This is why the DistilBERT model was used. For more information about the paper, please check out this [link](https://share.streamlit.io/mesmith027/streamlit_webapps/main/MC_pi/streamlit_app.py).")
|
54 |
|
55 |
-
st.sidebar.write("The specific DistilBERT model used for this is Bhadresh Savani's [distilbert-base-uncased-emotion] (https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion). It is
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
tester(emo)
|
58 |
|
|
|
52 |
st.sidebar.subheader("Model Description")
|
53 |
st.sidebar.write("This application uses the DistilBERT model, a distilled version of BERT. The BERT framework uses a bidirectional transformer that allows it to learn the context of a word based on the left and right of the word. According to a paper by V. Sanh, et al., DistilBERT can \"reduce the size of a BERT model by 40%, while retaining 97% of its language understanding capabilities, and being 60% faster.\" This is why the DistilBERT model was used. For more information about the paper, please check out this [link](https://share.streamlit.io/mesmith027/streamlit_webapps/main/MC_pi/streamlit_app.py).")
|
54 |
|
55 |
+
st.sidebar.write("The specific DistilBERT model used for this is Bhadresh Savani's [distilbert-base-uncased-emotion] (https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion). It is fine-tuned on the Emotion Dataset from Twitter, which can be found [here](https://huggingface.co/datasets/viewer/?dataset=emotion).")
|
56 |
+
|
57 |
+
st.sidebar.subheader("Disclaimer/Limitations")
|
58 |
+
st.sidebar.write("The model only outputs sadness, joy, love, anger, fear, and surprise. With that said, it does not completely encompass the emotions that a human being feels. Despite that, this application only predicts your emotion from your input text based on the six aforementioned emotions.")
|
59 |
+
|
60 |
+
|
61 |
|
62 |
tester(emo)
|
63 |
|