Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
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",
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
)
|