Skip to content

Commit

Permalink
output.csv as final filename
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhDagar authored Nov 9, 2024
1 parent 220a3b6 commit f375265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/autogluon_assistant/WebUI/pages/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def download_output_button():
if st.session_state.output_file is not None and st.session_state.task_running is False:
output_file = st.session_state.output_file
output_filename = st.session_state.output_filename
show_output_download_button(output_file.to_csv(index=False), output_filename)
final_name = os.path.basename(output_filename)
show_output_download_button(output_file.to_csv(index=False), final_name)


def toggle_running_state():
Expand Down

0 comments on commit f375265

Please sign in to comment.