Commit
·
ed571a3
1
Parent(s):
442c054
Fix: move css and theme to gr.Blocks()
Browse files
app.py
CHANGED
|
@@ -543,7 +543,7 @@ def generate_prompt(concept: str, camera: str) -> str:
|
|
| 543 |
|
| 544 |
|
| 545 |
# Build the Gradio interface
|
| 546 |
-
with gr.Blocks() as app:
|
| 547 |
with gr.Column(elem_classes="main-container"):
|
| 548 |
# Header
|
| 549 |
gr.HTML("""
|
|
@@ -604,4 +604,4 @@ with gr.Blocks() as app:
|
|
| 604 |
|
| 605 |
# Launch the app
|
| 606 |
if __name__ == "__main__":
|
| 607 |
-
app.launch(
|
|
|
|
| 543 |
|
| 544 |
|
| 545 |
# Build the Gradio interface
|
| 546 |
+
with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Base()) as app:
|
| 547 |
with gr.Column(elem_classes="main-container"):
|
| 548 |
# Header
|
| 549 |
gr.HTML("""
|
|
|
|
| 604 |
|
| 605 |
# Launch the app
|
| 606 |
if __name__ == "__main__":
|
| 607 |
+
app.launch()
|