Spaces:
Runtime error
Runtime error
Commit
•
b0450e6
1
Parent(s):
0d4fda3
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,7 @@ css = '''
|
|
183 |
#prompt_area{margin-bottom: .75em}
|
184 |
#prompt_area > div:first-child{flex: 1 3 auto}
|
185 |
'''
|
186 |
-
examples = ["a <cat-toy> in <madhubani-art> style", "a
|
187 |
with gr.Blocks(css=css) as demo:
|
188 |
state = gr.Variable({
|
189 |
'selected': -1
|
@@ -255,7 +255,7 @@ with gr.Blocks(css=css) as demo:
|
|
255 |
gr.Markdown('''
|
256 |
### Textual-Inversion trained [concepts library](https://huggingface.co/sd-concepts-library) navigator
|
257 |
''')
|
258 |
-
with gr.Row(
|
259 |
image_blocks = []
|
260 |
#for i, model in enumerate(models):
|
261 |
with gr.Box().style(border=None):
|
@@ -278,9 +278,9 @@ with gr.Blocks(css=css) as demo:
|
|
278 |
with gr.Row().style():
|
279 |
infer_outputs = gr.Gallery(show_label=False).style(grid=[2], height="512px")
|
280 |
with gr.Row():
|
281 |
-
gr.HTML("<p style=\"font-size: 85%;margin-top: .75em\">Prompting may not work as you are used to
|
282 |
with gr.Row():
|
283 |
-
gr.Examples(examples=examples, fn=infer, inputs=[text], outputs=infer_outputs, cache_examples=
|
284 |
checkbox_states = {}
|
285 |
inputs = [text]
|
286 |
btn.click(
|
|
|
183 |
#prompt_area{margin-bottom: .75em}
|
184 |
#prompt_area > div:first-child{flex: 1 3 auto}
|
185 |
'''
|
186 |
+
examples = ["a <cat-toy> in <madhubani-art> style", "a <line-art> style mecha robot", "a piano being played by <bonzi>", "Candid photo of <cheburashka> sitting on the couch, high resolution photo, trending on artstation, interior design"]
|
187 |
with gr.Blocks(css=css) as demo:
|
188 |
state = gr.Variable({
|
189 |
'selected': -1
|
|
|
255 |
gr.Markdown('''
|
256 |
### Textual-Inversion trained [concepts library](https://huggingface.co/sd-concepts-library) navigator
|
257 |
''')
|
258 |
+
with gr.Row():
|
259 |
image_blocks = []
|
260 |
#for i, model in enumerate(models):
|
261 |
with gr.Box().style(border=None):
|
|
|
278 |
with gr.Row().style():
|
279 |
infer_outputs = gr.Gallery(show_label=False).style(grid=[2], height="512px")
|
280 |
with gr.Row():
|
281 |
+
gr.HTML("<p style=\"font-size: 85%;margin-top: .75em\">Prompting may not work as you are used to. <code>objects</code> may need the concept added at the end, <code>styles</code> may work better at the beginning. You can navigate on <a href='https://lexica.art'>lexica.art</a> to get inspired on prompts</p>")
|
282 |
with gr.Row():
|
283 |
+
gr.Examples(examples=examples, fn=infer, inputs=[text], outputs=infer_outputs, cache_examples=True)
|
284 |
checkbox_states = {}
|
285 |
inputs = [text]
|
286 |
btn.click(
|