Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,13 +29,14 @@ with gr.Blocks() as app:
|
|
29 |
with gr.Tab("Text-to-Image"):
|
30 |
# Prompt dan Neg Prompt
|
31 |
with gr.Row():
|
32 |
-
with gr.Row():
|
33 |
prompt_input = gr.Textbox(label="Prompt", placeholder="Masukkan prompt teks", lines=2, elem_id="prompt-input")
|
34 |
neg_prompt_input = gr.Textbox(label="Neg Prompt", placeholder="Masukkan negasi prompt", lines=2, elem_id="neg-prompt-input")
|
35 |
-
|
|
|
36 |
|
37 |
with gr.Row():
|
38 |
-
with gr.Column(
|
39 |
# Konfigurasi
|
40 |
scheduler_input = gr.Dropdown(choices=["Euler", "LMS", "DDIM"], label="Sampling method")
|
41 |
num_steps_input = gr.Slider(minimum=1, maximum=100, step=1, label="Sampling steps", value=20)
|
@@ -45,7 +46,7 @@ with gr.Blocks() as app:
|
|
45 |
seed_input = gr.Number(label="Seed", value=-1)
|
46 |
num_images_input = gr.Slider(minimum=1, maximum=10, step=1, label="Batch size", value=1)
|
47 |
|
48 |
-
with gr.Column(
|
49 |
# Gallery untuk output gambar
|
50 |
output_gallery = gr.Gallery(label="Hasil Gambar")
|
51 |
# Output teks JSON di bawah gallery
|
|
|
29 |
with gr.Tab("Text-to-Image"):
|
30 |
# Prompt dan Neg Prompt
|
31 |
with gr.Row():
|
32 |
+
with gr.Row(scale=4):
|
33 |
prompt_input = gr.Textbox(label="Prompt", placeholder="Masukkan prompt teks", lines=2, elem_id="prompt-input")
|
34 |
neg_prompt_input = gr.Textbox(label="Neg Prompt", placeholder="Masukkan negasi prompt", lines=2, elem_id="neg-prompt-input")
|
35 |
+
with gr.Row(scale=1):
|
36 |
+
generate_button = gr.Button("Generate", elem_id="generate-button")
|
37 |
|
38 |
with gr.Row():
|
39 |
+
with gr.Column():
|
40 |
# Konfigurasi
|
41 |
scheduler_input = gr.Dropdown(choices=["Euler", "LMS", "DDIM"], label="Sampling method")
|
42 |
num_steps_input = gr.Slider(minimum=1, maximum=100, step=1, label="Sampling steps", value=20)
|
|
|
46 |
seed_input = gr.Number(label="Seed", value=-1)
|
47 |
num_images_input = gr.Slider(minimum=1, maximum=10, step=1, label="Batch size", value=1)
|
48 |
|
49 |
+
with gr.Column():
|
50 |
# Gallery untuk output gambar
|
51 |
output_gallery = gr.Gallery(label="Hasil Gambar")
|
52 |
# Output teks JSON di bawah gallery
|