fahrendrakhoirul commited on
Commit
992c7ee
·
1 Parent(s): 9759e5c

remove download button

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -183,17 +183,10 @@ def show_result(outputs):
183
  df = pd.DataFrame(new_outputs)
184
  st.write(df)
185
 
186
- # # Display the scores in a more beautiful way
187
- # for output in new_outputs:
188
- # st.markdown("### Predicted Scores")
189
- # for label, score in output['predicted_score'].items():
190
- # st.markdown(f"<div style='padding: 5px; border-radius: 5px; background-color: #f0f0f0; margin-bottom: 5px;'>"
191
- # f"<strong>{label}:</strong> <span style='color: #007BFF;'>{score}</span></div>",
192
- # unsafe_allow_html=True)
193
- button_download = st.button("Download as csv")
194
- if button_download:
195
- df.to_csv("result.csv", index=False)
196
- st.success("Result has been downloaded as csv")
197
 
198
 
199
  if button_submit and pipeline.ready_status:
 
183
  df = pd.DataFrame(new_outputs)
184
  st.write(df)
185
 
186
+ # create note if wanna download, hove on top right in table show
187
+ st.markdown("**Note:** To download the table, hover over the top right corner of the table and click the download button.")
188
+
189
+
 
 
 
 
 
 
 
190
 
191
 
192
  if button_submit and pipeline.ready_status: