Spaces:
Sleeping
Sleeping
Commit
·
740aa0d
1
Parent(s):
4743b14
Update app.py
Browse files
app.py
CHANGED
@@ -139,13 +139,19 @@ def predict_beetle(img):
|
|
139 |
|
140 |
|
141 |
# gradio app
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|
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",
|
151 |
demo.launch()
|
|
|
139 |
|
140 |
|
141 |
# gradio app
|
142 |
+
css = """
|
143 |
+
button {
|
144 |
+
width: auto; /* Set your desired width */
|
145 |
+
}
|
146 |
+
"""
|
147 |
+
|
148 |
+
with gr.Blocks(css=css) as demo:
|
149 |
with gr.Column(variant="panel"):
|
150 |
with gr.Row(variant="compact"):
|
151 |
inputs = gr.Image()
|
152 |
# Use the `full_width` parameter directly
|
153 |
+
btn = gr.Button("Classify")
|
154 |
|
155 |
# Set the gallery layout and height directly in the constructor
|
156 |
+
gallery = gr.Gallery(label="Show images", show_label=True, elem_id="gallery", columns=8, height="auto")
|
157 |
demo.launch()
|