fadzwan commited on
Commit
fb7237d
·
verified ·
1 Parent(s): b4545d3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -2
src/streamlit_app.py CHANGED
@@ -88,8 +88,9 @@ if generate_button:
88
  try:
89
  gif_path = plot_eeg_topomap_muse_from_csv(
90
  csv_url,
91
- save_path_animation="eeg_topomap_animation.gif",
92
- save_directory="/animations",
 
93
  show_names=True
94
  )
95
  if gif_path:
 
88
  try:
89
  gif_path = plot_eeg_topomap_muse_from_csv(
90
  csv_url,
91
+ save_directory = os.path.join(".", "animations")
92
+ os.makedirs(save_directory, exist_ok=True)
93
+ save_path_animation = os.path.join(save_directory, "eeg_topomap_animation.gif")
94
  show_names=True
95
  )
96
  if gif_path: