Profakerr commited on
Commit
0a40fc9
·
verified ·
1 Parent(s): 309bf38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -20
app.py CHANGED
@@ -67,31 +67,33 @@ with gr.Blocks() as demo:
67
  info="Enter what you don't want in Image...",
68
  lines=3
69
  )
 
70
  with gr.Column():
71
  # Output component
72
  image_output = gr.Image(label="Generated Image")
73
 
74
  with gr.Row():
75
- steps_slider = gr.Slider(
76
- minimum=1,
77
- maximum=100,
78
- value=50,
79
- step=1,
80
- label="Number of Inference Steps"
81
- )
82
- guidance_slider = gr.Slider(
83
- minimum=1,
84
- maximum=20,
85
- value=7.5,
86
- step=0.5,
87
- label="Guidance Scale"
88
- )
89
- model = gr.Dropdown(
90
- choices=["Real6.0","Real5.1","Real5.0"],
91
- value="Real6.0",
92
- label="Model",
93
- )
94
- generate_button = gr.Button("Generate Image")
 
95
 
96
  # Connect the interface to the generation function
97
  generate_button.click(
 
67
  info="Enter what you don't want in Image...",
68
  lines=3
69
  )
70
+ generate_button = gr.Button("Generate Image")
71
  with gr.Column():
72
  # Output component
73
  image_output = gr.Image(label="Generated Image")
74
 
75
  with gr.Row():
76
+ with gr.Column():
77
+ with gr.Accordion("Advanced Options", open=False):
78
+ model = gr.Dropdown(
79
+ choices=["Real6.0","Real5.1","Real5.0"],
80
+ value="Real6.0",
81
+ label="Model",
82
+ )
83
+ steps_slider = gr.Slider(
84
+ minimum=1,
85
+ maximum=100,
86
+ value=50,
87
+ step=1,
88
+ label="Number of Inference Steps"
89
+ )
90
+ guidance_slider = gr.Slider(
91
+ minimum=1,
92
+ maximum=20,
93
+ value=7.5,
94
+ step=0.5,
95
+ label="Guidance Scale"
96
+ )
97
 
98
  # Connect the interface to the generation function
99
  generate_button.click(