Spaces:
Sleeping
Sleeping
Commit
·
3acc3fd
1
Parent(s):
672851c
Update app.py
Browse files
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 |
-
|
|
|
147 |
|
148 |
-
gallery
|
149 |
-
|
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()
|