jugggernault commited on
Commit
b7828ff
·
1 Parent(s): dba5125

fix: header text position

Browse files
Files changed (1) hide show
  1. app.py +4 -10
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.Markdown(
60
  """
61
- <h1 style="text-align: center;">Image processing lab</h1>
62
  """
63
  )
64
  with gr.Row():
65
  input_img = gr.Image(
66
- "https://img.freepik.com/photos-gratuite/bouchent-portrait-beau-chat_23-2149214419.jpg?t=st=1728653358~exp=1728656958~hmac=ccd5ca63c11d3fe802cf8072f2426415fd25fbc241776b3acf8d1559056185ea&w=740",
67
- label="Original image",
68
- scale=1,
69
- interactive=True,
70
  )
71
  with gr.Group():
72
  output_img = gr.Image(
73
- "https://img.freepik.com/photos-gratuite/bouchent-portrait-beau-chat_23-2149214419.jpg?t=st=1728653358~exp=1728656958~hmac=ccd5ca63c11d3fe802cf8072f2426415fd25fbc241776b3acf8d1559056185ea&w=740",
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"):