linoyts HF Staff commited on
Commit
4de1cda
·
verified ·
1 Parent(s): 0f847d1

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -461,7 +461,7 @@ button.spin { font-weight: 900 !important; letter-spacing: .02em; }
461
  footer { display:none !important; }
462
  """
463
 
464
- with gr.Blocks(title="Comic Orbit Studio", theme=gr.themes.Soft(primary_hue="pink", secondary_hue="cyan")) as demo:
465
  gr.HTML(INTRO)
466
 
467
  tray_state = gr.State([])
@@ -566,4 +566,9 @@ with gr.Blocks(title="Comic Orbit Studio", theme=gr.themes.Soft(primary_hue="pin
566
 
567
 
568
  if __name__ == "__main__":
569
- demo.launch(show_error=True, allowed_paths=[OUTPUT_DIR, PANEL_DIR])
 
 
 
 
 
 
461
  footer { display:none !important; }
462
  """
463
 
464
+ with gr.Blocks(title="Comic Orbit Studio", css=CSS) as demo:
465
  gr.HTML(INTRO)
466
 
467
  tray_state = gr.State([])
 
566
 
567
 
568
  if __name__ == "__main__":
569
+ # Gradio 6 moved `theme` from the Blocks constructor to launch(); `css` stays on Blocks.
570
+ demo.launch(
571
+ show_error=True,
572
+ theme=gr.themes.Soft(primary_hue="pink", secondary_hue="cyan"),
573
+ allowed_paths=[OUTPUT_DIR, PANEL_DIR],
574
+ )