Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from data_cleaning import preprocess
|
|
| 5 |
from transformers import pipeline
|
| 6 |
from data_integration import scrape_all_pages
|
| 7 |
|
| 8 |
-
st.
|
| 9 |
|
| 10 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
| 11 |
# Example usage:-
|
|
@@ -30,6 +30,6 @@ for text in reviews['processed_text']:
|
|
| 30 |
sentiments.append(output)
|
| 31 |
|
| 32 |
reviews['sentiments'] = sentiments
|
| 33 |
-
st.
|
| 34 |
st.dataframe(reviews, use_container_width=True)
|
| 35 |
# sns.countplot(reviews['sentiments'])
|
|
|
|
| 5 |
from transformers import pipeline
|
| 6 |
from data_integration import scrape_all_pages
|
| 7 |
|
| 8 |
+
st.markdown('Amazon Sentiment Analysis using FineTuned :blue[GPT-2] Pre-Trained Model')
|
| 9 |
|
| 10 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
| 11 |
# Example usage:-
|
|
|
|
| 30 |
sentiments.append(output)
|
| 31 |
|
| 32 |
reviews['sentiments'] = sentiments
|
| 33 |
+
st.markdown(':rainbow[Output]')
|
| 34 |
st.dataframe(reviews, use_container_width=True)
|
| 35 |
# sns.countplot(reviews['sentiments'])
|