shawarmabytes commited on
Commit
0030bab
·
1 Parent(s): 81ea8ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -7,7 +7,12 @@ import streamlit as st
7
 
8
 
9
  st.header("stream your emotions")
10
- st.caption("i lovey you")
 
 
 
 
 
11
 
12
 
13
 
@@ -54,11 +59,13 @@ def tester(text):
54
  emo = st.text_input("Enter a text/phrase/sentence. A corresponding song will be recommended based on its emotion.")
55
 
56
 
57
- st.sidebar.subheader("Model Description")
58
- 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).")
59
 
60
  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).")
61
 
 
 
 
62
  st.sidebar.subheader("Disclaimer/Limitations")
63
  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, and the application only suggests a playlist based on the aforementioned emotions.")
64
 
 
7
 
8
 
9
  st.header("stream your emotions")
10
+ st.caption("love: i love you")
11
+ st.caption("surprise: shocking")
12
+ st.caption("sadness" i feel exhausted")
13
+ st.caption("joy: bro i feel so energetic")
14
+ st.caption("fear: im scared of what lies ahead")
15
+ st.caption("anger: you piss me off")
16
 
17
 
18
 
 
59
  emo = st.text_input("Enter a text/phrase/sentence. A corresponding song will be recommended based on its emotion.")
60
 
61
 
62
+
 
63
 
64
  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).")
65
 
66
+ st.sidebar.subheader("Model Description")
67
+ 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).")
68
+
69
  st.sidebar.subheader("Disclaimer/Limitations")
70
  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, and the application only suggests a playlist based on the aforementioned emotions.")
71