Spaces:
Running
Running
Commit
·
5a2307a
1
Parent(s):
dcaebec
- gradio_app.py +9 -2
gradio_app.py
CHANGED
@@ -75,6 +75,13 @@ label {
|
|
75 |
font-weight: 500 !important;
|
76 |
margin-bottom: 8px !important;
|
77 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
"""
|
79 |
|
80 |
def analyze_with_loading(text, progress=gr.Progress()):
|
@@ -135,7 +142,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
|
|
135 |
)
|
136 |
|
137 |
# Button section
|
138 |
-
with gr.Row(
|
139 |
analyze_btn = gr.Button(
|
140 |
"✨ Analyze Content",
|
141 |
variant="primary"
|
@@ -165,4 +172,4 @@ if __name__ == "__main__":
|
|
165 |
debug=True,
|
166 |
show_error=True,
|
167 |
ssr=False # Disable SSR to prevent potential issues
|
168 |
-
)
|
|
|
75 |
font-weight: 500 !important;
|
76 |
margin-bottom: 8px !important;
|
77 |
}
|
78 |
+
|
79 |
+
/* Center alignment for button */
|
80 |
+
.center-row {
|
81 |
+
display: flex;
|
82 |
+
justify-content: center;
|
83 |
+
align-items: center;
|
84 |
+
}
|
85 |
"""
|
86 |
|
87 |
def analyze_with_loading(text, progress=gr.Progress()):
|
|
|
142 |
)
|
143 |
|
144 |
# Button section
|
145 |
+
with gr.Row(elem_classes="center-row"):
|
146 |
analyze_btn = gr.Button(
|
147 |
"✨ Analyze Content",
|
148 |
variant="primary"
|
|
|
172 |
debug=True,
|
173 |
show_error=True,
|
174 |
ssr=False # Disable SSR to prevent potential issues
|
175 |
+
)
|