Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,10 +271,17 @@ def image_processing(image, filter_type):
|
|
| 271 |
|
| 272 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
| 273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
|
| 275 |
# Gradio interface
|
| 276 |
-
with gr.Blocks(theme=theme) as app:
|
| 277 |
-
gr.HTML("<center><
|
| 278 |
with gr.Tab("Flip Image"):
|
| 279 |
with gr.Row():
|
| 280 |
image_input = gr.Image()
|
|
|
|
| 271 |
|
| 272 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
| 273 |
|
| 274 |
+
css = """
|
| 275 |
+
#app-container {
|
| 276 |
+
max-width: 1200px;
|
| 277 |
+
margin-left: auto;
|
| 278 |
+
margin-right: auto;
|
| 279 |
+
}
|
| 280 |
+
"""
|
| 281 |
|
| 282 |
# Gradio interface
|
| 283 |
+
with gr.Blocks(theme=theme, css=css) as app:
|
| 284 |
+
gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
|
| 285 |
with gr.Tab("Flip Image"):
|
| 286 |
with gr.Row():
|
| 287 |
image_input = gr.Image()
|