Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -123,18 +123,6 @@ with gr.Blocks(css="style.css") as app:
|
|
123 |
|
124 |
generate_button_i2i.click(fn=generative_i2i, inputs=[image_input, scheduler_input, seed_input, steps, cfg_scale, strength], outputs=output_image_i2i)
|
125 |
|
126 |
-
# Tab untuk ControlNet
|
127 |
-
with gr.Tab("ControlNet"):
|
128 |
-
with gr.Row():
|
129 |
-
with gr.Column():
|
130 |
-
controlnet_dropdown = gr.Dropdown(choices=controlnet_types, label="Pilih Tipe ControlNet")
|
131 |
-
controlnet_image_input = gr.Image(label="Unggah Gambar untuk ControlNet")
|
132 |
-
controlnet_button = gr.Button("Proses dengan ControlNet")
|
133 |
-
|
134 |
-
with gr.Column():
|
135 |
-
controlnet_output_image = gr.Image(label="Hasil ControlNet")
|
136 |
-
controlnet_button.click(fn=controlnet_process_func, inputs=[controlnet_image_input, controlnet_dropdown], outputs=controlnet_output_image)
|
137 |
-
|
138 |
# Tab untuk Intpainting
|
139 |
with gr.Tab ("Inpainting"):
|
140 |
with gr.Row():
|
|
|
123 |
|
124 |
generate_button_i2i.click(fn=generative_i2i, inputs=[image_input, scheduler_input, seed_input, steps, cfg_scale, strength], outputs=output_image_i2i)
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
# Tab untuk Intpainting
|
127 |
with gr.Tab ("Inpainting"):
|
128 |
with gr.Row():
|