Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
|
@@ -174,11 +174,11 @@ with gr.Blocks() as demo:
|
|
| 174 |
prompt_gs = gr.Number(label='Guidance scale', value=12)
|
| 175 |
prompt_steps = gr.Slider(label="Inference Steps",value=50)
|
| 176 |
prompt_btn = gr.Button("Generate")
|
| 177 |
-
prompt_btn.click(infer, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=[output])
|
| 178 |
with gr.Column():
|
| 179 |
-
output
|
| 180 |
-
|
| 181 |
-
|
|
|
|
| 182 |
# gr.Interface(infer, inputs=[gr.Textbox(label="Positive Prompt", value="a photo of puggieace dog getting a haircut"),
|
| 183 |
# gr.Textbox(label="Negative Prompt", value="bad anatomy, blurry"),
|
| 184 |
# # gr.Slider(label='Number of gen image', minimum=1, maximum=4, value=2, step=1),
|
|
@@ -191,7 +191,7 @@ with gr.Blocks() as demo:
|
|
| 191 |
with gr.Column():
|
| 192 |
gr.Markdown(" ")
|
| 193 |
|
| 194 |
-
demo.launch()
|
| 195 |
|
| 196 |
|
| 197 |
|
|
|
|
| 174 |
prompt_gs = gr.Number(label='Guidance scale', value=12)
|
| 175 |
prompt_steps = gr.Slider(label="Inference Steps",value=50)
|
| 176 |
prompt_btn = gr.Button("Generate")
|
|
|
|
| 177 |
with gr.Column():
|
| 178 |
+
output = gr.Gallery(label="Outputs").style(grid=(1,2))
|
| 179 |
+
prompt_btn.click(infer, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=[output])
|
| 180 |
+
with gr.Row():
|
| 181 |
+
gr.Examples(examples, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps])
|
| 182 |
# gr.Interface(infer, inputs=[gr.Textbox(label="Positive Prompt", value="a photo of puggieace dog getting a haircut"),
|
| 183 |
# gr.Textbox(label="Negative Prompt", value="bad anatomy, blurry"),
|
| 184 |
# # gr.Slider(label='Number of gen image', minimum=1, maximum=4, value=2, step=1),
|
|
|
|
| 191 |
with gr.Column():
|
| 192 |
gr.Markdown(" ")
|
| 193 |
|
| 194 |
+
demo.queue().launch()
|
| 195 |
|
| 196 |
|
| 197 |
|