Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,19 +35,20 @@ theme = gr.themes.Base(
|
|
| 35 |
)
|
| 36 |
|
| 37 |
with gr.Blocks(theme=theme) as demo:
|
| 38 |
-
gr.Markdown("""
|
| 39 |
-
<center>
|
| 40 |
-
<h1> Tony Assi Lora </h1>
|
| 41 |
-
</center>
|
| 42 |
-
|
| 43 |
-
<center> by <a href="https://www.tonyassi.com/">Tony Assi</a> </center>
|
| 44 |
-
""")
|
| 45 |
|
| 46 |
img = gr.Image(show_label=False, type='pil')
|
| 47 |
|
| 48 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
| 49 |
|
| 50 |
button = gr.Button("generate", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
| 53 |
|
|
|
|
| 35 |
)
|
| 36 |
|
| 37 |
with gr.Blocks(theme=theme) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
img = gr.Image(show_label=False, type='pil')
|
| 40 |
|
| 41 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
| 42 |
|
| 43 |
button = gr.Button("generate", variant="primary")
|
| 44 |
+
|
| 45 |
+
gr.Examples(
|
| 46 |
+
[["Kendall Jenner wearing a black mesh outfit with puffy black sleeves"], ["Hunter Schafer wearing a mint green mesh outfit with puffy sleeves"], ["Eva Mendes wearing clear vinyl outfit"]],
|
| 47 |
+
textbox,
|
| 48 |
+
img,
|
| 49 |
+
generate,
|
| 50 |
+
cache_examples=True,
|
| 51 |
+
)
|
| 52 |
|
| 53 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
| 54 |
|