Spaces:
Runtime error
Runtime error
Kvikontent
commited on
Commit
•
2151b1c
1
Parent(s):
d3b342b
Update app.py
Browse files
app.py
CHANGED
@@ -54,10 +54,15 @@ def generate_image_from_prompt(prompt_text):
|
|
54 |
return pil_img
|
55 |
|
56 |
title = "BUlatnaya V1 Demo 🎨"
|
57 |
-
description = "This app uses
|
58 |
|
59 |
-
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. '
|
60 |
output_generated_image = gr.Image(label="Generated Image")
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
iface = gr.Interface(
|
63 |
fn=generate_image_from_prompt,
|
@@ -65,6 +70,8 @@ iface = gr.Interface(
|
|
65 |
outputs=output_generated_image,
|
66 |
title=title,
|
67 |
description=description,
|
|
|
|
|
68 |
theme="soft"
|
69 |
)
|
70 |
iface.launch()
|
|
|
54 |
return pil_img
|
55 |
|
56 |
title = "BUlatnaya V1 Demo 🎨"
|
57 |
+
description = "This app uses Bulatnaya V1 model to generate an image based on the provided text prompt 🖼. Tag 'Bulatnaya' in prompt is required. No nudes accepted!"
|
58 |
|
59 |
+
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'Bulatnaya in red suit'")
|
60 |
output_generated_image = gr.Image(label="Generated Image")
|
61 |
+
examples = [
|
62 |
+
"Bulatnaya in swimsuit on the beach"
|
63 |
+
"Bulatnaya eating chicken in gold restaurant"
|
64 |
+
"Bulatnaya screaming at plate"
|
65 |
+
]
|
66 |
|
67 |
iface = gr.Interface(
|
68 |
fn=generate_image_from_prompt,
|
|
|
70 |
outputs=output_generated_image,
|
71 |
title=title,
|
72 |
description=description,
|
73 |
+
examples=examples,
|
74 |
+
cache_examples=False,
|
75 |
theme="soft"
|
76 |
)
|
77 |
iface.launch()
|