Spaces:
Runtime error
Runtime error
Commit
·
1acce7c
1
Parent(s):
7f669e6
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,10 +88,10 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
|
|
| 88 |
"model": model,
|
| 89 |
"steps": steps,
|
| 90 |
"sampler": sampler,
|
| 91 |
-
"cfg_scale":
|
| 92 |
"width": width,
|
| 93 |
"height": height,
|
| 94 |
-
"seed":
|
| 95 |
})
|
| 96 |
|
| 97 |
job = prodia_client.wait(result)
|
|
@@ -114,8 +114,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 114 |
""")
|
| 115 |
with gr.Row():
|
| 116 |
with gr.Column(scale=6, min_width=600):
|
| 117 |
-
prompt = gr.Textbox(label="Prompt", placeholder="beautiful cat, 8k", show_label=
|
| 118 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", placeholder="What you don't want to see in the image", show_label=
|
| 119 |
with gr.Column():
|
| 120 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
| 121 |
|
|
@@ -162,8 +162,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 162 |
height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
|
| 163 |
|
| 164 |
|
| 165 |
-
|
| 166 |
-
seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
|
| 167 |
|
| 168 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 169 |
|
|
|
|
| 88 |
"model": model,
|
| 89 |
"steps": steps,
|
| 90 |
"sampler": sampler,
|
| 91 |
+
"cfg_scale": 7,
|
| 92 |
"width": width,
|
| 93 |
"height": height,
|
| 94 |
+
"seed": -1
|
| 95 |
})
|
| 96 |
|
| 97 |
job = prodia_client.wait(result)
|
|
|
|
| 114 |
""")
|
| 115 |
with gr.Row():
|
| 116 |
with gr.Column(scale=6, min_width=600):
|
| 117 |
+
prompt = gr.Textbox(label="Prompt", placeholder="beautiful cat, 8k", show_label=True, lines=2)
|
| 118 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", placeholder="What you don't want to see in the image", show_label=True, lines=3)
|
| 119 |
with gr.Column():
|
| 120 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
| 121 |
|
|
|
|
| 162 |
height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
|
| 163 |
|
| 164 |
|
| 165 |
+
|
|
|
|
| 166 |
|
| 167 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
| 168 |
|