Update app.py
Browse files
app.py
CHANGED
@@ -59,26 +59,25 @@ with gr.Blocks(css=css) as demo:
|
|
59 |
</h1>
|
60 |
</div>
|
61 |
<p style="margin-bottom: 10px; font-size: 94%">
|
62 |
-
|
63 |
-
and then runs it through Stable Diffusion to create aesthetically pleasing images. Simply enter a few concepts and let it improve your prompt. You can then diffuse the prompt.
|
64 |
</p>
|
65 |
</div>""")
|
66 |
|
67 |
with gr.Row():
|
68 |
with gr.Column():
|
69 |
-
input_text = gr.Textbox(label="
|
70 |
-
lines=
|
71 |
with gr.Row():
|
72 |
see_prompts = gr.Button("Feed in your text!")
|
73 |
|
74 |
with gr.Column():
|
75 |
text_output = gr.Textbox(
|
76 |
-
label="
|
77 |
-
lines=
|
78 |
elem_id="translated"
|
79 |
)
|
80 |
with gr.Row():
|
81 |
-
diffuse_btn = gr.Button(value="
|
82 |
with gr.Column(elem_id="generated-gallery"):
|
83 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
84 |
with gr.Group(elem_id="share-btn-container"):
|
|
|
59 |
</h1>
|
60 |
</div>
|
61 |
<p style="margin-bottom: 10px; font-size: 94%">
|
62 |
+
Prompt Refinery generates 10 variations on your prompt using <a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion" target="_blank">MagicPrompt</a>
|
|
|
63 |
</p>
|
64 |
</div>""")
|
65 |
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
+
input_text = gr.Textbox(label="Input text prompt",
|
69 |
+
lines=5, elem_id="input-text")
|
70 |
with gr.Row():
|
71 |
see_prompts = gr.Button("Feed in your text!")
|
72 |
|
73 |
with gr.Column():
|
74 |
text_output = gr.Textbox(
|
75 |
+
label="Expanded text prompts",
|
76 |
+
lines=10,
|
77 |
elem_id="translated"
|
78 |
)
|
79 |
with gr.Row():
|
80 |
+
diffuse_btn = gr.Button(value="Refine my Prompts")
|
81 |
with gr.Column(elem_id="generated-gallery"):
|
82 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
83 |
with gr.Group(elem_id="share-btn-container"):
|