Nakhwa commited on
Commit
d6c2bbd
1 Parent(s): 3e76d6d

Update deteksi_upload.py

Browse files
Files changed (1) hide show
  1. deteksi_upload.py +2 -2
deteksi_upload.py CHANGED
@@ -137,8 +137,8 @@ def show_deteksi_upload():
137
  # Add Timestamp only for saving
138
  corrected_df['Timestamp'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
139
 
140
- cols = ['Label_id', 'Label', 'Title', 'Content', 'Fact', 'References', 'Classification', 'Datasource', 'Result_Detection', 'Result_Correction']
141
- corrected_df_to_display = corrected_df[cols]
142
 
143
  st.markdown("<h6 style='font-size: 16px; margin-bottom: 0;'>Data yang Dikoreksi</h6>", unsafe_allow_html=True)
144
  st.dataframe(corrected_df_to_display, use_container_width=True, hide_index=True)
 
137
  # Add Timestamp only for saving
138
  corrected_df['Timestamp'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
139
 
140
+ cols = ['Result_Detection', 'Result_Correction'] + \
141
+ [col for col in corrected_df.columns if col not in ['Result_Detection', 'Result_Correction']]
142
 
143
  st.markdown("<h6 style='font-size: 16px; margin-bottom: 0;'>Data yang Dikoreksi</h6>", unsafe_allow_html=True)
144
  st.dataframe(corrected_df_to_display, use_container_width=True, hide_index=True)