Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,34 +271,34 @@ def start_session(request: gr.Request):
|
|
| 271 |
return request.session_hash
|
| 272 |
|
| 273 |
def build_demo():
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
theme = gr.themes.Ocean()
|
| 303 |
|
| 304 |
with gr.Blocks(css=css, theme=theme) as demo:
|
|
@@ -306,7 +306,6 @@ def build_demo():
|
|
| 306 |
demo.load(start_session, outputs=[session_state])
|
| 307 |
|
| 308 |
with gr.Column(elem_id="col-container"):
|
| 309 |
-
|
| 310 |
with gr.Row():
|
| 311 |
with gr.Column(scale=1, elem_classes=["left-panel"]):
|
| 312 |
|
|
|
|
| 271 |
return request.session_hash
|
| 272 |
|
| 273 |
def build_demo():
|
| 274 |
+
css = """
|
| 275 |
+
#col-container {
|
| 276 |
+
margin: 0 auto;
|
| 277 |
+
max-width: 1560px;
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
.generate-btn {
|
| 281 |
+
background: linear-gradient(45deg, #22c55e, #16a34a) !important;
|
| 282 |
+
border: none !important;
|
| 283 |
+
color: white !important;
|
| 284 |
+
font-weight: bold !important;
|
| 285 |
+
transition: all 0.3s ease !important;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.generate-btn:hover {
|
| 289 |
+
background: linear-gradient(45deg, #16a34a, #15803d) !important;
|
| 290 |
+
transform: translateY(-2px) !important;
|
| 291 |
+
box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3) !important;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
.left-panel {
|
| 295 |
+
display: flex;
|
| 296 |
+
flex-direction: column;
|
| 297 |
+
justify-content: center;
|
| 298 |
+
height: 100%;
|
| 299 |
+
min-height: 500px;
|
| 300 |
+
}
|
| 301 |
+
"""
|
| 302 |
theme = gr.themes.Ocean()
|
| 303 |
|
| 304 |
with gr.Blocks(css=css, theme=theme) as demo:
|
|
|
|
| 306 |
demo.load(start_session, outputs=[session_state])
|
| 307 |
|
| 308 |
with gr.Column(elem_id="col-container"):
|
|
|
|
| 309 |
with gr.Row():
|
| 310 |
with gr.Column(scale=1, elem_classes=["left-panel"]):
|
| 311 |
|