prateeksharmacoder commited on
Commit
4a2cf36
·
1 Parent(s): c693372

fix: move css= from demo.launch() to gr.Blocks() (Gradio 5 API)

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -896,8 +896,8 @@ def run_app(latitude, longitude, start_date, end_date):
896
  # ============================================================
897
 
898
  with gr.Blocks(
899
- title="TerraVision — Sentinel-2 Super Resolution"
900
- # css parameter moved to demo.launch()
901
  ) as demo:
902
 
903
  # ========================================================
@@ -1184,4 +1184,4 @@ with gr.Blocks(
1184
 
1185
  print("✅ TerraVision UI + Interactive Map created successfully!")
1186
 
1187
- demo.launch(css=custom_css)
 
896
  # ============================================================
897
 
898
  with gr.Blocks(
899
+ title="TerraVision — Sentinel-2 Super Resolution",
900
+ css=custom_css
901
  ) as demo:
902
 
903
  # ========================================================
 
1184
 
1185
  print("✅ TerraVision UI + Interactive Map created successfully!")
1186
 
1187
+ demo.launch()