Spaces:
Running
Running
Commit Β·
491a86d
1
Parent(s): 694ac0b
Fix: move css param from launch() to Blocks() for Gradio 5.x compat
Browse files
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
|
|
|
|
| 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)
|