Simonlob commited on
Commit
1470ecd
·
verified ·
1 Parent(s): c1e4008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -135,11 +135,12 @@ css = """
135
  #share-btn-container .wrap {
136
  display: none !important;
137
  }
138
- img {
 
139
  display: block;
140
  margin: 0 auto;
141
- width: 20px !important;
142
- height: 20px !important;
143
  }
144
  """
145
  with gr.Blocks(css=css) as block:
@@ -160,7 +161,7 @@ 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")
 
135
  #share-btn-container .wrap {
136
  display: none !important;
137
  }
138
+ }
139
+ .centered-image {
140
  display: block;
141
  margin: 0 auto;
142
+ width: 200px !important;
143
+ height: 200px !important;
144
  }
145
  """
146
  with gr.Blocks(css=css) as block:
 
161
  )
162
  with gr.Row():
163
  image_path = "./photo_2024-04-07_15-59-52.png"
164
+ gr.Image(image_path, label=None, width=200, height=200, show_label=False, elem_classes="centered-image")
165
  with gr.Row():
166
  with gr.Column():
167
  input_text = gr.Textbox(label="Input Text", lines=2, value=default_text, elem_id="input_text")