multimodalart HF Staff commited on
Commit
f7944df
verified
1 Parent(s): 581a2f4

Gradio 6: theme and css go to launch()

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -482,7 +482,7 @@ CSS = """
482
  .status p {font-size: 0.8rem; opacity: 0.65; text-align: center;}
483
  """
484
 
485
- with gr.Blocks(title="PlagueKind 路 MiniMax-H3", theme=gr.themes.Citrus(), css=CSS) as demo:
486
  gr.Markdown(INTRO)
487
  gr.Markdown(status(), elem_classes="status")
488
 
@@ -641,4 +641,5 @@ One upgrade: the workflow loads `minimax_h3_fl2va_pruned_int8_convrot.safetensor
641
 
642
 
643
  if __name__ == "__main__":
644
- demo.launch(show_error=True)
 
 
482
  .status p {font-size: 0.8rem; opacity: 0.65; text-align: center;}
483
  """
484
 
485
+ with gr.Blocks(title="PlagueKind 路 MiniMax-H3") as demo:
486
  gr.Markdown(INTRO)
487
  gr.Markdown(status(), elem_classes="status")
488
 
 
641
 
642
 
643
  if __name__ == "__main__":
644
+ # `theme` and `css` belong to `launch()` from Gradio 6.0 on; on `Blocks` they warn and are ignored.
645
+ demo.launch(show_error=True, theme=gr.themes.Citrus(), css=CSS)