Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from data_integration import scrape_all_pages
|
|
| 8 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
| 9 |
|
| 10 |
# Example usage:-
|
| 11 |
-
sample_url = 'https://www.amazon.in/
|
| 12 |
url = st.text_input("Amazon product link", sample_url)
|
| 13 |
st.write("The current movie title is", url)
|
| 14 |
|
|
@@ -17,6 +17,7 @@ all_reviews = scrape_all_pages(url)
|
|
| 17 |
reviews = pd.DataFrame(all_reviews)
|
| 18 |
reviews['processed_text'] = reviews['content'].apply(preprocess)
|
| 19 |
|
|
|
|
| 20 |
# st.markdown(sentiment_model(['It is Super!']))
|
| 21 |
|
| 22 |
sentiments = []
|
|
|
|
| 8 |
sentiment_model = pipeline(model="ashok2216/gpt2-amazon-sentiment-classifier")
|
| 9 |
|
| 10 |
# Example usage:-
|
| 11 |
+
sample_url = 'https://www.amazon.in/Dell-Inspiron-i7-1255U-Processor-Platinum/product-reviews/B0C9F142V6/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews'
|
| 12 |
url = st.text_input("Amazon product link", sample_url)
|
| 13 |
st.write("The current movie title is", url)
|
| 14 |
|
|
|
|
| 17 |
reviews = pd.DataFrame(all_reviews)
|
| 18 |
reviews['processed_text'] = reviews['content'].apply(preprocess)
|
| 19 |
|
| 20 |
+
st.dataframe(reviews, use_container_width=True)
|
| 21 |
# st.markdown(sentiment_model(['It is Super!']))
|
| 22 |
|
| 23 |
sentiments = []
|