Maseshi commited on
Commit
28f3c4e
1 Parent(s): 70d8bd8

➖ Remove deprecated gradio.Box() function

Browse files
Files changed (1) hide show
  1. app.py +25 -26
app.py CHANGED
@@ -166,34 +166,33 @@ with gr.Blocks(
166
  """
167
  )
168
  with gr.Group():
169
- with gr.Box():
170
- with gr.Row():
171
- with gr.Column():
172
- prompt = gr.Textbox(
173
- label="Enter your prompt",
174
- show_label=False,
175
- placeholder="Enter your prompt"
176
- ).style(
177
- border=(True, False, True, True),
178
- rounded=(True, False, False, True),
179
- container=False,
180
- )
181
- negative = gr.Textbox(
182
- label="Enter your negative prompt",
183
- show_label=False,
184
- placeholder="Enter a negative prompt"
185
- ).style(
186
- border=(True, False, True, True),
187
- rounded=(True, False, False, True),
188
- container=False,
189
- )
190
- generate_button = gr.Button(
191
- "Generate image"
192
  ).style(
193
- margin=False,
194
- rounded=(False, True, True, False),
195
- full_width=True,
196
  )
 
 
 
 
 
 
 
197
  gallery = gr.Gallery(
198
  label="Generated images",
199
  show_label=False
 
166
  """
167
  )
168
  with gr.Group():
169
+ with gr.Row():
170
+ with gr.Column():
171
+ prompt = gr.Textbox(
172
+ label="Enter your prompt",
173
+ show_label=False,
174
+ placeholder="Enter your prompt"
175
+ ).style(
176
+ border=(True, False, True, True),
177
+ rounded=(True, False, False, True),
178
+ container=False,
179
+ )
180
+ negative = gr.Textbox(
181
+ label="Enter your negative prompt",
182
+ show_label=False,
183
+ placeholder="Enter a negative prompt"
 
 
 
 
 
 
 
 
184
  ).style(
185
+ border=(True, False, True, True),
186
+ rounded=(True, False, False, True),
187
+ container=False,
188
  )
189
+ generate_button = gr.Button(
190
+ "Generate image"
191
+ ).style(
192
+ margin=False,
193
+ rounded=(False, True, True, False),
194
+ full_width=True,
195
+ )
196
  gallery = gr.Gallery(
197
  label="Generated images",
198
  show_label=False