Spaces:
Running
Running
hatmanstack
commited on
Commit
·
8856d1e
1
Parent(s):
5166e47
examples ui
Browse files
app.py
CHANGED
@@ -179,30 +179,26 @@ with gr.Blocks() as demo:
|
|
179 |
gr.Markdown("On Negation: For example, consider the prompt \"a rainy city street at night with no people\". The model might interpret \"people\" as a directive of what to include instead of omit. To generate better results, you could use the prompt \"a rainy city street at night\" with a negative prompt \"people\".")
|
180 |
gr.Markdown("On Prompt Length: When diffusion models were first introduced, they could process only 77 tokens. While new techniques have extended this limit, they remain bound by their training data. AWS Nova Canvas limits input by character length instead, ensuring no characters beyond the set limit are considered in the generated model.")
|
181 |
|
182 |
-
gr.Markdown("""
|
183 |
-
<div style="text-align: center;">
|
184 |
-
<h1>Sample Prompts and Results</h1>
|
185 |
-
</div>
|
186 |
-
""")
|
187 |
|
188 |
# Example 1
|
189 |
with gr.Row():
|
190 |
with gr.Column():
|
191 |
-
gr.Image("examples/sample2.png", width=200, show_label=False, show_download_button=False,container=False)
|
192 |
with gr.Column():
|
193 |
gr.Markdown("""A whimsical outdoor scene where vibrant flowers and sprawling vines, crafted from an array of colorful fruit leathers and intricately designed candies, flutter with delicate, lifelike butterflies made from translucent, shimmering sweets. Each petal and leaf glistens with a soft, sugary sheen, casting playful reflections. The butterflies, with their candy wings adorned in fruity patterns, flit about, creating a magical, edible landscape that delights the senses.""")
|
194 |
|
195 |
# Example 2
|
196 |
with gr.Row():
|
197 |
with gr.Column():
|
198 |
-
gr.Image("examples/sample3.png", width=200, show_label=False, show_download_button=False, container=False)
|
199 |
with gr.Column():
|
200 |
gr.Markdown("""A Kansas Jayhawk with a basketball photorealistic""")
|
201 |
|
202 |
# Example 3
|
203 |
with gr.Row():
|
204 |
with gr.Column():
|
205 |
-
gr.Image("examples/sample4.png", width=200, show_label=False, show_download_button=False,container=False)
|
206 |
with gr.Column():
|
207 |
gr.Markdown("""A rugged adventurer's ensemble, crafted for the wild, featuring a khaki jacket adorned with numerous functional pockets, a sun-bleached pith hat with a wide brim, sturdy canvas trousers with reinforced knees, and a pair of weathered leather boots with high-traction soles. Accented with a brass compass pendant and a leather utility belt laden with small tools, the outfit is completed by a pair of aviator sunglasses and a weathered map tucked into a side pocket.""")
|
208 |
|
|
|
179 |
gr.Markdown("On Negation: For example, consider the prompt \"a rainy city street at night with no people\". The model might interpret \"people\" as a directive of what to include instead of omit. To generate better results, you could use the prompt \"a rainy city street at night\" with a negative prompt \"people\".")
|
180 |
gr.Markdown("On Prompt Length: When diffusion models were first introduced, they could process only 77 tokens. While new techniques have extended this limit, they remain bound by their training data. AWS Nova Canvas limits input by character length instead, ensuring no characters beyond the set limit are considered in the generated model.")
|
181 |
|
182 |
+
gr.Markdown("""<h1>Sample Prompts and Results</h1>""", elem_classes="center-markdown")
|
|
|
|
|
|
|
|
|
183 |
|
184 |
# Example 1
|
185 |
with gr.Row():
|
186 |
with gr.Column():
|
187 |
+
gr.Image("examples/sample2.png", width=200, show_label=False, show_download_button=False, show_share_button=False, container=False)
|
188 |
with gr.Column():
|
189 |
gr.Markdown("""A whimsical outdoor scene where vibrant flowers and sprawling vines, crafted from an array of colorful fruit leathers and intricately designed candies, flutter with delicate, lifelike butterflies made from translucent, shimmering sweets. Each petal and leaf glistens with a soft, sugary sheen, casting playful reflections. The butterflies, with their candy wings adorned in fruity patterns, flit about, creating a magical, edible landscape that delights the senses.""")
|
190 |
|
191 |
# Example 2
|
192 |
with gr.Row():
|
193 |
with gr.Column():
|
194 |
+
gr.Image("examples/sample3.png", width=200, show_label=False, show_download_button=False, show_share_button=False, container=False)
|
195 |
with gr.Column():
|
196 |
gr.Markdown("""A Kansas Jayhawk with a basketball photorealistic""")
|
197 |
|
198 |
# Example 3
|
199 |
with gr.Row():
|
200 |
with gr.Column():
|
201 |
+
gr.Image("examples/sample4.png", width=200, show_label=False, show_download_button=False, show_share_button=False, container=False)
|
202 |
with gr.Column():
|
203 |
gr.Markdown("""A rugged adventurer's ensemble, crafted for the wild, featuring a khaki jacket adorned with numerous functional pockets, a sun-bleached pith hat with a wide brim, sturdy canvas trousers with reinforced knees, and a pair of weathered leather boots with high-traction soles. Accented with a brass compass pendant and a leather utility belt laden with small tools, the outfit is completed by a pair of aviator sunglasses and a weathered map tucked into a side pocket.""")
|
204 |
|