Lifeinhockey commited on
Commit
e5c747c
·
verified ·
1 Parent(s): fb9b3f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -138,12 +138,7 @@ with gr.Blocks(css=css) as demo:
138
  value=20, # Replace with defaults that work for your model
139
  )
140
 
141
- #run_button = gr.Button("Run", scale=0, variant="primary")
142
-
143
- #result = gr.Image(label="Result", show_label=False)
144
-
145
  with gr.Accordion("Advanced Settings", open=False):
146
-
147
  with gr.Row():
148
  width = gr.Slider(
149
  label="Width",
@@ -161,14 +156,12 @@ with gr.Blocks(css=css) as demo:
161
  value=512, # Replace with defaults that work for your model
162
  )
163
 
164
-
165
- run_button = gr.Button("Run", scale=0, variant="primary")
166
-
167
- result = gr.Image(label="Result", show_label=False)
168
-
169
  gr.Examples(examples=examples, inputs=[prompt])
170
  gr.Examples(examples=examples_negative, inputs=[negative_prompt])
171
 
 
 
 
172
  gr.on(
173
  triggers=[run_button.click, prompt.submit],
174
  fn=infer,
 
138
  value=20, # Replace with defaults that work for your model
139
  )
140
 
 
 
 
 
141
  with gr.Accordion("Advanced Settings", open=False):
 
142
  with gr.Row():
143
  width = gr.Slider(
144
  label="Width",
 
156
  value=512, # Replace with defaults that work for your model
157
  )
158
 
 
 
 
 
 
159
  gr.Examples(examples=examples, inputs=[prompt])
160
  gr.Examples(examples=examples_negative, inputs=[negative_prompt])
161
 
162
+ run_button = gr.Button("Run", scale=0, variant="primary")
163
+ result = gr.Image(label="Result", show_label=False)
164
+
165
  gr.on(
166
  triggers=[run_button.click, prompt.submit],
167
  fn=infer,