Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,12 +220,12 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 220 |
|
| 221 |
with gr.Row():
|
| 222 |
with gr.Column(scale=1):
|
| 223 |
-
num_slider = gr.Slider(minimum=1, maximum=4, step=1, value=2, label="
|
| 224 |
-
gen_btn = gr.Button("
|
| 225 |
gr.Markdown("*Note: Hugging Face's free server runs on CPU. Generating images may take 30 to 60 seconds.*")
|
| 226 |
|
| 227 |
with gr.Column(scale=2):
|
| 228 |
-
gallery = gr.Gallery(label="
|
| 229 |
|
| 230 |
gen_btn.click(fn=generate_fakemons, inputs=num_slider, outputs=gallery)
|
| 231 |
|
|
|
|
| 220 |
|
| 221 |
with gr.Row():
|
| 222 |
with gr.Column(scale=1):
|
| 223 |
+
num_slider = gr.Slider(minimum=1, maximum=4, step=1, value=2, label="Fakemon Quantity", info="More images take more time on HuggingFace CPU.")
|
| 224 |
+
gen_btn = gr.Button("Generate Fakemons! 🚀", variant="primary")
|
| 225 |
gr.Markdown("*Note: Hugging Face's free server runs on CPU. Generating images may take 30 to 60 seconds.*")
|
| 226 |
|
| 227 |
with gr.Column(scale=2):
|
| 228 |
+
gallery = gr.Gallery(label="Generated fakemons:", show_label=True, elem_id="gallery", columns=[2], rows=[2], object_fit="contain", height="auto")
|
| 229 |
|
| 230 |
gen_btn.click(fn=generate_fakemons, inputs=num_slider, outputs=gallery)
|
| 231 |
|