Spaces:
Runtime error
Runtime error
Commit
·
93dd212
1
Parent(s):
acc5f49
Revert "`app.py`: use gallery component"
Browse filesThis reverts commit acc5f49b14fb308f327575ac2bff332b7ddc1c05.
app.py
CHANGED
@@ -96,7 +96,7 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
|
|
96 |
|
97 |
job = prodia_client.wait(result)
|
98 |
|
99 |
-
return
|
100 |
|
101 |
css = """
|
102 |
#generate {
|
@@ -166,7 +166,7 @@ with gr.Blocks(css=css) as demo:
|
|
166 |
|
167 |
|
168 |
with gr.Column(scale=2):
|
169 |
-
image_output = gr.
|
170 |
|
171 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
172 |
|
|
|
96 |
|
97 |
job = prodia_client.wait(result)
|
98 |
|
99 |
+
return job["imageUrl"]
|
100 |
|
101 |
css = """
|
102 |
#generate {
|
|
|
166 |
|
167 |
|
168 |
with gr.Column(scale=2):
|
169 |
+
image_output = gr.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
|
170 |
|
171 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
172 |
|