Mike0021 commited on
Commit
d0f74ce
·
verified ·
1 Parent(s): 9a385ef

fix: move CSS to launch, add demo.launch

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -280,7 +280,7 @@ CSS = """
280
  .gradio-container {max-width: 1200px !important;}
281
  """
282
 
283
- with gr.Blocks(css=CSS, title="Terrain Diffusion Demo") as demo:
284
  gr.Markdown("# 🏔️ Terrain Diffusion Demo")
285
  gr.Markdown(
286
  "Generate realistic terrain heightmaps using the "
@@ -377,4 +377,4 @@ with gr.Blocks(css=CSS, title="Terrain Diffusion Demo") as demo:
377
  outputs=[relief_output, elev_output, preview_3d_output, download_output, cond_output, stats_output],
378
  )
379
 
380
- demo = demo
 
280
  .gradio-container {max-width: 1200px !important;}
281
  """
282
 
283
+ with gr.Blocks(title="Terrain Diffusion Demo") as demo:
284
  gr.Markdown("# 🏔️ Terrain Diffusion Demo")
285
  gr.Markdown(
286
  "Generate realistic terrain heightmaps using the "
 
377
  outputs=[relief_output, elev_output, preview_3d_output, download_output, cond_output, stats_output],
378
  )
379
 
380
+ demo.launch(css=CSS)