DamarJati commited on
Commit
a529f7a
·
verified ·
1 Parent(s): 3fce290

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -4
app.py CHANGED
@@ -305,13 +305,30 @@ with gr.Blocks(css= "style.css") as app:
305
 
306
  # Tab untuk Image-to-Image
307
  with gr.Tab("Image-to-Image"):
 
 
 
 
 
 
308
  with gr.Row():
309
  with gr.Column():
310
  image_input = gr.Image(label="Unggah Gambar")
311
- prompt_input_i2i = gr.Textbox(label="Prompt", placeholder="Masukkan prompt teks", lines=2)
312
- neg_prompt_input_i2i = gr.Textbox(label="Neg Prompt", placeholder="Masukkan negasi prompt", lines=2)
313
- generate_button_i2i = gr.Button("Proses Gambar")
314
-
 
 
 
 
 
 
 
 
 
 
 
315
  with gr.Column():
316
  output_image_i2i = gr.Image(label="Hasil Gambar")
317
 
 
305
 
306
  # Tab untuk Image-to-Image
307
  with gr.Tab("Image-to-Image"):
308
+ with gr.Row():
309
+ with gr.Column(scale=1):
310
+ prompt_input = gr.Textbox(label="Prompt", placeholder="Masukkan prompt teks", lines=2, elem_id="prompt-input")
311
+ neg_prompt_input = gr.Textbox(label="Neg Prompt", placeholder="Masukkan negasi prompt", lines=2, elem_id="neg-prompt-input")
312
+ generate_button = gr.Button("Generate", elem_id="generate-button", scale=0.13)
313
+
314
  with gr.Row():
315
  with gr.Column():
316
  image_input = gr.Image(label="Unggah Gambar")
317
+ generate_button_i2i = gr.Button("Generate")
318
+ with gr.Row():
319
+ scheduler_input = gr.Dropdown(choices=schedulers, label="Sampling method", value=schedulers[0])
320
+ seed_input = gr.Number(label="Seed", value=-1)
321
+
322
+ with gr.Row():
323
+ width_input = gr.Slider(minimum=128, maximum=2048, step=128, label="Width", value=512)
324
+ steps = gr.Slider(minimum=1, maximum=100, step=1, label="Steps", value=20)
325
+
326
+ with gr.Row():
327
+ height_input = gr.Slider(minimum=128, maximum=2048, step=128, label="Height", value=512)
328
+ cfg_scale = gr.Slider(minimum=1, maximum=24, step=1, label="CFG Scale", value=7)
329
+
330
+ with gr.Row():
331
+ strength = gr.Slider(minimum=0, maximum=1, step=0.1, label="Strength", value=0.6)
332
  with gr.Column():
333
  output_image_i2i = gr.Image(label="Hasil Gambar")
334