Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -590,6 +590,14 @@ def make_custom_css():
|
|
590 |
padding: 20px;
|
591 |
border-radius: 15px;
|
592 |
border: 1px solid #3a3b3e;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
}
|
594 |
.settings-panel h3 {
|
595 |
color: #4b9ffa;
|
@@ -610,7 +618,9 @@ def make_custom_css():
|
|
610 |
.button-container {
|
611 |
display: flex;
|
612 |
gap: 10px;
|
613 |
-
margin
|
|
|
|
|
614 |
}
|
615 |
/* Override Gradio's default light theme */
|
616 |
.gr-box {
|
@@ -728,6 +738,18 @@ with block:
|
|
728 |
height=320
|
729 |
)
|
730 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
731 |
with gr.Group(elem_classes="prompt-container"):
|
732 |
prompt = gr.Textbox(
|
733 |
label="Describe the animation you want",
|
@@ -744,17 +766,6 @@ with block:
|
|
744 |
components=[prompt]
|
745 |
)
|
746 |
|
747 |
-
with gr.Group(elem_classes="button-container"):
|
748 |
-
start_button = gr.Button(
|
749 |
-
value="▶️ Generate Animation",
|
750 |
-
elem_classes=["primary-btn"]
|
751 |
-
)
|
752 |
-
stop_button = gr.Button(
|
753 |
-
value="⏹️ Stop",
|
754 |
-
elem_classes=["secondary-btn"],
|
755 |
-
interactive=False
|
756 |
-
)
|
757 |
-
|
758 |
# Right Column - Output
|
759 |
with gr.Column(elem_classes="output-panel"):
|
760 |
preview_image = gr.Image(
|
|
|
590 |
padding: 20px;
|
591 |
border-radius: 15px;
|
592 |
border: 1px solid #3a3b3e;
|
593 |
+
display: flex;
|
594 |
+
flex-direction: column;
|
595 |
+
align-items: center; /* Center output content */
|
596 |
+
gap: 20px;
|
597 |
+
}
|
598 |
+
.output-panel > div {
|
599 |
+
width: 100%;
|
600 |
+
max-width: 640px; /* Limit width for better centering */
|
601 |
}
|
602 |
.settings-panel h3 {
|
603 |
color: #4b9ffa;
|
|
|
618 |
.button-container {
|
619 |
display: flex;
|
620 |
gap: 10px;
|
621 |
+
margin: 15px 0;
|
622 |
+
justify-content: center;
|
623 |
+
width: 100%;
|
624 |
}
|
625 |
/* Override Gradio's default light theme */
|
626 |
.gr-box {
|
|
|
738 |
height=320
|
739 |
)
|
740 |
|
741 |
+
# Moved buttons here
|
742 |
+
with gr.Group(elem_classes="button-container"):
|
743 |
+
start_button = gr.Button(
|
744 |
+
value="▶️ Generate Animation",
|
745 |
+
elem_classes=["primary-btn"]
|
746 |
+
)
|
747 |
+
stop_button = gr.Button(
|
748 |
+
value="⏹️ Stop",
|
749 |
+
elem_classes=["secondary-btn"],
|
750 |
+
interactive=False
|
751 |
+
)
|
752 |
+
|
753 |
with gr.Group(elem_classes="prompt-container"):
|
754 |
prompt = gr.Textbox(
|
755 |
label="Describe the animation you want",
|
|
|
766 |
components=[prompt]
|
767 |
)
|
768 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
# Right Column - Output
|
770 |
with gr.Column(elem_classes="output-panel"):
|
771 |
preview_image = gr.Image(
|