broadfield-dev commited on
Commit
ca059e5
·
verified ·
1 Parent(s): e1181ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,8 @@ def setup_and_load_model():
96
  # --- 2. Live Data Fetching and Preprocessing (as a generator) ---
97
  def fetch_and_process_sdo_data(target_dt):
98
  config = APP_CACHE["config"]
99
- img_size = config["model"]["img_size"][0]
 
100
 
101
  input_deltas = config["data"]["time_delta_input_minutes"]
102
  target_delta = config["data"]["time_delta_target_minutes"][0]
@@ -253,7 +254,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
253
  state_prediction = gr.State()
254
  state_target = gr.State()
255
 
256
- # *** FIX: Replaced all '...' with complete UI component definitions ***
257
  gr.Markdown(
258
  """
259
  <div align='center'>
 
96
  # --- 2. Live Data Fetching and Preprocessing (as a generator) ---
97
  def fetch_and_process_sdo_data(target_dt):
98
  config = APP_CACHE["config"]
99
+ # *** FIX: Access img_size as an integer, not a list. Removed [0]. ***
100
+ img_size = config["model"]["img_size"]
101
 
102
  input_deltas = config["data"]["time_delta_input_minutes"]
103
  target_delta = config["data"]["time_delta_target_minutes"][0]
 
254
  state_prediction = gr.State()
255
  state_target = gr.State()
256
 
 
257
  gr.Markdown(
258
  """
259
  <div align='center'>