Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ sentiment_classifier = pipeline("text-classification",model='Ryleeeee/CustomSent
|
|
| 8 |
summarizer = pipeline("summarization", model="MurkatG/review-summarizer-en")
|
| 9 |
|
| 10 |
# Streamlit application title and background image
|
| 11 |
-
st.image("./header.png", use_column_width=
|
| 12 |
st.markdown("<h1 style='text-align: center;'>Customer Review Analysis</h1>", unsafe_allow_html=True)
|
| 13 |
|
| 14 |
st.write("Setiment classification: positive, netural, negative")
|
|
@@ -43,7 +43,6 @@ if st.button("Classify Sentiment"):
|
|
| 43 |
st.write("Prediction score is ", sentiment_result[0])
|
| 44 |
|
| 45 |
if sentiment_result[1] == 'negative':
|
| 46 |
-
st.button("Summarize Review")
|
| 47 |
if st.button("Summarize Review"):
|
| 48 |
summary = summarize_text(review)
|
| 49 |
st.write("Review summary: ", summary)
|
|
|
|
| 8 |
summarizer = pipeline("summarization", model="MurkatG/review-summarizer-en")
|
| 9 |
|
| 10 |
# Streamlit application title and background image
|
| 11 |
+
st.image("./header.png", use_column_width=True)
|
| 12 |
st.markdown("<h1 style='text-align: center;'>Customer Review Analysis</h1>", unsafe_allow_html=True)
|
| 13 |
|
| 14 |
st.write("Setiment classification: positive, netural, negative")
|
|
|
|
| 43 |
st.write("Prediction score is ", sentiment_result[0])
|
| 44 |
|
| 45 |
if sentiment_result[1] == 'negative':
|
|
|
|
| 46 |
if st.button("Summarize Review"):
|
| 47 |
summary = summarize_text(review)
|
| 48 |
st.write("Review summary: ", summary)
|