Simonlob commited on
Commit
edd432b
·
verified ·
1 Parent(s): 775e425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -136,8 +136,10 @@ css = """
136
  display: none !important;
137
  }
138
  img {
139
- width: 132px !important;
140
- height: 132px !important;
 
 
141
  }
142
  """
143
  with gr.Blocks(css=css) as block:
@@ -158,7 +160,7 @@ with gr.Blocks(css=css) as block:
158
  )
159
  with gr.Row():
160
  image_path = "./photo_2024-04-07_15-59-52.png"
161
- gr.Image(image_path, label=None, width=132, height=132, show_label=False)
162
  with gr.Row():
163
  with gr.Column():
164
  input_text = gr.Textbox(label="Input Text", lines=2, value=default_text, elem_id="input_text")
 
136
  display: none !important;
137
  }
138
  img {
139
+ display: block;
140
+ margin: 0 auto;
141
+ width: 200px !important;
142
+ height: 200px !important;
143
  }
144
  """
145
  with gr.Blocks(css=css) as block:
 
160
  )
161
  with gr.Row():
162
  image_path = "./photo_2024-04-07_15-59-52.png"
163
+ gr.Image(image_path, label=None, width=200, height=200, show_label=False)
164
  with gr.Row():
165
  with gr.Column():
166
  input_text = gr.Textbox(label="Input Text", lines=2, value=default_text, elem_id="input_text")