Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
|
@@ -167,20 +167,24 @@ with gr.Blocks() as demo:
|
|
| 167 |
with gr.Row():
|
| 168 |
gr.Markdown(model_card_1)
|
| 169 |
with gr.Row():
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
# # gr.Slider(label='Number of gen image', minimum=1, maximum=4, value=2, step=1),
|
| 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])
|
| 178 |
-
gr.Interface(infer, inputs=[gr.Textbox(label="Positive Prompt", value="a photo of puggieace dog getting a haircut"),
|
| 179 |
-
gr.Textbox(label="Negative Prompt", value="bad anatomy, blurry"),
|
| 180 |
# gr.Slider(label='Number of gen image', minimum=1, maximum=4, value=2, step=1),
|
| 181 |
-
gr.Number(label='Guidance scale', value=12)
|
| 182 |
-
gr.Slider(label="Inference Steps",value=50)
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
with gr.Row():
|
| 185 |
with gr.Column():
|
| 186 |
gr.Markdown(model_card_2)
|
|
|
|
| 167 |
with gr.Row():
|
| 168 |
gr.Markdown(model_card_1)
|
| 169 |
with gr.Row():
|
| 170 |
+
with gr.Column():
|
| 171 |
+
prompt_pos = gr.Textbox(label="Positive Prompt", value="a photo of puggieace dog getting a haircut")
|
| 172 |
+
prompt_neg = gr.Textbox(label="Negative Prompt", value="bad anatomy, blurry")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
# gr.Slider(label='Number of gen image', minimum=1, maximum=4, value=2, step=1),
|
| 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 |
+
# with gr.Row():
|
| 181 |
+
# gr.Examples(examples)
|
| 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),
|
| 185 |
+
# gr.Number(label='Guidance scale', value=12),
|
| 186 |
+
# gr.Slider(label="Inference Steps",value=50),
|
| 187 |
+
# ], outputs=[output], title=title, description=description, examples=examples).queue()
|
| 188 |
with gr.Row():
|
| 189 |
with gr.Column():
|
| 190 |
gr.Markdown(model_card_2)
|