Spaces:
Runtime error
Runtime error
Commit ·
b7828ff
1
Parent(s): dba5125
fix: header text position
Browse files
app.py
CHANGED
|
@@ -56,24 +56,18 @@ def reset_img(input_img):
|
|
| 56 |
|
| 57 |
# Interface Gradio
|
| 58 |
with gr.Blocks(theme="Zarkel/IBM_Carbon_Theme") as demo:
|
| 59 |
-
gr.
|
| 60 |
"""
|
| 61 |
-
<h1 style=
|
| 62 |
"""
|
| 63 |
)
|
| 64 |
with gr.Row():
|
| 65 |
input_img = gr.Image(
|
| 66 |
-
"
|
| 67 |
-
label="Original image",
|
| 68 |
-
scale=1,
|
| 69 |
-
interactive=True,
|
| 70 |
)
|
| 71 |
with gr.Group():
|
| 72 |
output_img = gr.Image(
|
| 73 |
-
"
|
| 74 |
-
label="Transformed image",
|
| 75 |
-
scale=2,
|
| 76 |
-
interactive=False,
|
| 77 |
)
|
| 78 |
btn = gr.Button(value="Reset") # Bouton de réinitialisation
|
| 79 |
with gr.Row(variant="panel"):
|
|
|
|
| 56 |
|
| 57 |
# Interface Gradio
|
| 58 |
with gr.Blocks(theme="Zarkel/IBM_Carbon_Theme") as demo:
|
| 59 |
+
gr.HTML(
|
| 60 |
"""
|
| 61 |
+
<h1 style='text-align: center'>Image processing lab</h1>
|
| 62 |
"""
|
| 63 |
)
|
| 64 |
with gr.Row():
|
| 65 |
input_img = gr.Image(
|
| 66 |
+
"./profile.jpeg", label="Original image", scale=1, interactive=True
|
|
|
|
|
|
|
|
|
|
| 67 |
)
|
| 68 |
with gr.Group():
|
| 69 |
output_img = gr.Image(
|
| 70 |
+
"./profile.jpeg", label="Transformed image", scale=2, interactive=False
|
|
|
|
|
|
|
|
|
|
| 71 |
)
|
| 72 |
btn = gr.Button(value="Reset") # Bouton de réinitialisation
|
| 73 |
with gr.Row(variant="panel"):
|