Emmanuel Acheampong Claude Sonnet 4.6 commited on
Commit
9a22e75
Β·
1 Parent(s): d3a0294

Fix startup: move theme/css to Blocks, call launch() unconditionally

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -268,7 +268,7 @@ css = """
268
  footer { display: none !important; }
269
  """
270
 
271
- with gr.Blocks(title="Crusoe Foundry β€” Infinite Context Demo") as demo:
272
 
273
  # ── Header ────────────────────────────────────────────────────────────────
274
  gr.HTML("""
@@ -514,5 +514,4 @@ with gr.Blocks(title="Crusoe Foundry β€” Infinite Context Demo") as demo:
514
  """)
515
 
516
 
517
- if __name__ == "__main__":
518
- demo.launch(theme=gr.themes.Soft(primary_hue="blue"), css=css)
 
268
  footer { display: none !important; }
269
  """
270
 
271
+ with gr.Blocks(title="Crusoe Foundry β€” Infinite Context Demo", theme=gr.themes.Soft(primary_hue="blue"), css=css) as demo:
272
 
273
  # ── Header ────────────────────────────────────────────────────────────────
274
  gr.HTML("""
 
514
  """)
515
 
516
 
517
+ demo.launch()