jeffliulab commited on
Commit
491a86d
Β·
1 Parent(s): 694ac0b

Fix: move css param from launch() to Blocks() for Gradio 5.x compat

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -277,7 +277,7 @@ _sat_fig, _street_fig = get_static_maps()
277
  _temp_placeholder = plot_temperature_placeholder()
278
  logger.info("Basemaps ready.")
279
 
280
- with gr.Blocks(title="Tufts Jumbo Weather Forecast") as demo:
281
 
282
  # ── Top bar ───────────────────────────────────────────────────
283
  gr.HTML(
@@ -353,4 +353,4 @@ if __name__ == "__main__":
353
  except Exception as e:
354
  logger.warning(f"Pre-load failed: {e}")
355
 
356
- demo.launch(share=False, css=CUSTOM_CSS)
 
277
  _temp_placeholder = plot_temperature_placeholder()
278
  logger.info("Basemaps ready.")
279
 
280
+ with gr.Blocks(title="Tufts Jumbo Weather Forecast", css=CUSTOM_CSS) as demo:
281
 
282
  # ── Top bar ───────────────────────────────────────────────────
283
  gr.HTML(
 
353
  except Exception as e:
354
  logger.warning(f"Pre-load failed: {e}")
355
 
356
+ demo.launch(share=False)