Spaces:
Running on Zero
Running on Zero
Gradio 6: theme and css go to launch()
Browse files
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"
|
| 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 |
-
|
|
|
|
|
|
| 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)
|