DamarJati commited on
Commit
a15d400
·
verified ·
1 Parent(s): 39c7af4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
 
3
  # Daftar model dan ControlNet
4
  models = ["Model A", "Model B", "Model C"]
 
5
  controlnet_types = ["Canny", "Depth", "Normal", "Pose"]
6
 
7
  # Fungsi placeholder
@@ -23,7 +24,9 @@ def controlnet_process(image, controlnet_type, model):
23
  with gr.Blocks() as app:
24
  # Dropdown untuk memilih model di luar tab dengan lebar kecil
25
  with gr.Row():
26
- model_dropdown = gr.Dropdown(choices=models, label="Pilih Model", elem_id="model-dropdown", scale=0.3)
 
 
27
 
28
  # Tab untuk Text-to-Image
29
  with gr.Tab("Text-to-Image"):
 
2
 
3
  # Daftar model dan ControlNet
4
  models = ["Model A", "Model B", "Model C"]
5
+ vae = ["VAE A", "VAE B", "VAE C"]
6
  controlnet_types = ["Canny", "Depth", "Normal", "Pose"]
7
 
8
  # Fungsi placeholder
 
24
  with gr.Blocks() as app:
25
  # Dropdown untuk memilih model di luar tab dengan lebar kecil
26
  with gr.Row():
27
+ model_dropdown = gr.Dropdown(choices=models, label="Model", elem_id="model-dropdown", value="Model B", scale=0.3)
28
+ vae_dropdown = gr.Dropdown(choices=vae, label="VAE", elem_id="vae-dropdown", value="VAE C", scale=0.3)
29
+
30
 
31
  # Tab untuk Text-to-Image
32
  with gr.Tab("Text-to-Image"):