Update app.py
Browse files
app.py
CHANGED
|
@@ -55,11 +55,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 55 |
"
|
| 56 |
>
|
| 57 |
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 58 |
-
|
| 59 |
</h1>
|
| 60 |
</div>
|
| 61 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 62 |
-
Prompt Refinery generates
|
| 63 |
</p>
|
| 64 |
</div>""")
|
| 65 |
|
|
@@ -68,7 +68,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 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("
|
| 72 |
|
| 73 |
with gr.Column():
|
| 74 |
text_output = gr.Textbox(
|
|
@@ -77,7 +77,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 77 |
elem_id="translated"
|
| 78 |
)
|
| 79 |
with gr.Row():
|
| 80 |
-
diffuse_btn = gr.Button(value="
|
| 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"):
|
|
|
|
| 55 |
"
|
| 56 |
>
|
| 57 |
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 58 |
+
Prompt Refinery
|
| 59 |
</h1>
|
| 60 |
</div>
|
| 61 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 62 |
+
Prompt Refinery generates variations of your prompt using <a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion" target="_blank">MagicPrompt and Stable Diffusion</a>
|
| 63 |
</p>
|
| 64 |
</div>""")
|
| 65 |
|
|
|
|
| 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("Expand my prompts")
|
| 72 |
|
| 73 |
with gr.Column():
|
| 74 |
text_output = gr.Textbox(
|
|
|
|
| 77 |
elem_id="translated"
|
| 78 |
)
|
| 79 |
with gr.Row():
|
| 80 |
+
diffuse_btn = gr.Button(value="Render Images for 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"):
|