Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,8 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
156 |
plt.axis('off')
|
157 |
st.pyplot(fig)
|
158 |
|
159 |
-
|
|
|
160 |
csv = result1.to_csv(index=False)
|
161 |
st.download_button(
|
162 |
label="Download data as CSV",
|
@@ -169,5 +170,7 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
169 |
else:
|
170 |
st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
|
171 |
|
|
|
|
|
172 |
if 'url_count' in st.session_state:
|
173 |
st.write(f"URL pasted {st.session_state['url_count']} times.")
|
|
|
156 |
plt.axis('off')
|
157 |
st.pyplot(fig)
|
158 |
|
159 |
+
|
160 |
+
result1 = result.drop('Review Number', axis=1)
|
161 |
csv = result1.to_csv(index=False)
|
162 |
st.download_button(
|
163 |
label="Download data as CSV",
|
|
|
170 |
else:
|
171 |
st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
|
172 |
|
173 |
+
st.divider()
|
174 |
+
|
175 |
if 'url_count' in st.session_state:
|
176 |
st.write(f"URL pasted {st.session_state['url_count']} times.")
|