Simonlob commited on
Commit
8454d6c
·
verified ·
1 Parent(s): 84b49fc

Update app.py

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