ChristopherMarais commited on
Commit
3acc3fd
·
1 Parent(s): 672851c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -143,11 +143,9 @@ with gr.Blocks() as demo:
143
  with gr.Column(variant="panel"):
144
  with gr.Row(variant="compact"):
145
  inputs = gr.Image()
146
- btn = gr.Button("Classify")
 
147
 
148
- gallery = gr.Gallery(
149
- label="Show images", show_label=True, elem_id="gallery"
150
- )
151
-
152
- btn.click(predict_beetle, inputs, gallery)
153
  demo.launch()
 
143
  with gr.Column(variant="panel"):
144
  with gr.Row(variant="compact"):
145
  inputs = gr.Image()
146
+ # Use the `full_width` parameter directly
147
+ btn = gr.Button("Classify", full_width=False)
148
 
149
+ # Set the gallery layout and height directly in the constructor
150
+ gallery = gr.Gallery(label="Show images", show_label=True, elem_id="gallery", layout="grid", cell_size=8, height="auto")
 
 
 
151
  demo.launch()