Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ import math
|
|
3 |
import tensorflow as tf
|
4 |
from transformers import GPT2Tokenizer, TFGPT2Model
|
5 |
|
6 |
-
st.title("
|
7 |
-
st.write('Model detects if a specific
|
8 |
-
tweet = st.text_input("Enter your
|
9 |
#st.write(f"Hello {name}!")
|
10 |
|
11 |
PAD_TOKEN = "<|pad|>"
|
@@ -58,9 +58,9 @@ st.write(f"Negative Sentiment Prediction: {negative}")
|
|
58 |
|
59 |
st.header('Below samples are outside of train or test data')
|
60 |
st.header('Sample Positive Sentiment Tweets')
|
61 |
-
st.write(f"
|
62 |
st.write(f"I'm eating cheezits...with TWO flavors! sharp cheddar & parmesan. :-D")
|
63 |
-
st.write(f"Just
|
64 |
st.write(f"On way home blasting mcfly in the back of the car in the sun good times ")
|
65 |
st.write(f"@AshenDestiny Just had a look at ur updates..quite thoughtful ones..")
|
66 |
|
|
|
3 |
import tensorflow as tf
|
4 |
from transformers import GPT2Tokenizer, TFGPT2Model
|
5 |
|
6 |
+
st.title("Sentiment Analysis")
|
7 |
+
st.write('Model detects if a specific comment has positive or negative sentiment')
|
8 |
+
tweet = st.text_input("Enter your comment", '')
|
9 |
#st.write(f"Hello {name}!")
|
10 |
|
11 |
PAD_TOKEN = "<|pad|>"
|
|
|
58 |
|
59 |
st.header('Below samples are outside of train or test data')
|
60 |
st.header('Sample Positive Sentiment Tweets')
|
61 |
+
st.write(f"Watchin Espn's First Take! my favorite mornin show! lol Skip is great tv! fyi Im a Witness!")
|
62 |
st.write(f"I'm eating cheezits...with TWO flavors! sharp cheddar & parmesan. :-D")
|
63 |
+
st.write(f"Just drank a coffe,but I'm still sleeping lol...now drink a fresh lemonade and eat some marshmallows mmm...then study guitar!")
|
64 |
st.write(f"On way home blasting mcfly in the back of the car in the sun good times ")
|
65 |
st.write(f"@AshenDestiny Just had a look at ur updates..quite thoughtful ones..")
|
66 |
|