Christoph Hemmer commited on
Commit
883d9ab
Β·
1 Parent(s): 0e7a564

update metadata

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +3 -1
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: DynaMix
3
  emoji: πŸŒ€
4
- colorFrom: blue
5
- colorTo: red
6
  sdk: gradio
7
  sdk_version: 5.43.1
8
  app_file: app.py
 
1
  ---
2
  title: DynaMix
3
  emoji: πŸŒ€
4
+ colorFrom: red
5
+ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 5.43.1
8
  app_file: app.py
app.py CHANGED
@@ -137,9 +137,11 @@ with gr.Blocks(title="DynaMix πŸŒ€ - Forecasting", theme=gr.themes.Soft()) as de
137
  if preset_file_path:
138
  file_path = preset_file_path
139
  ext = ".npy"
 
140
  else:
141
  file_path = file.name
142
  ext = os.path.splitext(file.name)[1].lower()
 
143
 
144
  # Load input file (.csv or .npy)
145
  if ext == ".csv":
@@ -223,7 +225,7 @@ with gr.Blocks(title="DynaMix πŸŒ€ - Forecasting", theme=gr.themes.Soft()) as de
223
 
224
  # 8. Print success notification with timestamp
225
  current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
226
- print(f"[{current_time}] - Forecast completed successfully!")
227
 
228
  return fig, csv_path, npy_path
229
 
 
137
  if preset_file_path:
138
  file_path = preset_file_path
139
  ext = ".npy"
140
+ data_name = preset_selection
141
  else:
142
  file_path = file.name
143
  ext = os.path.splitext(file.name)[1].lower()
144
+ data_name = os.path.basename(file.name)
145
 
146
  # Load input file (.csv or .npy)
147
  if ext == ".csv":
 
225
 
226
  # 8. Print success notification with timestamp
227
  current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
228
+ print(f"[{current_time}] - Forecast of {data_name} completed successfully!")
229
 
230
  return fig, csv_path, npy_path
231