Update app.py
Browse files
app.py
CHANGED
|
@@ -298,15 +298,19 @@ instructions = "Explore creative art generation using Stable Diffusion. Enter a
|
|
| 298 |
demo = gr.Interface(generate_image_from_prompt,
|
| 299 |
inputs = [gr.Textbox(label='Prompt'),
|
| 300 |
gr.Dropdown(['<gartic-phone>', '<hawaiian shirt>','<gp>','<style-spdmn>','<yvmqznrm>'], label='Style')
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
|
| 311 |
|
| 312 |
demo.launch(debug=True)
|
|
|
|
| 298 |
demo = gr.Interface(generate_image_from_prompt,
|
| 299 |
inputs = [gr.Textbox(label='Prompt'),
|
| 300 |
gr.Dropdown(['<gartic-phone>', '<hawaiian shirt>','<gp>','<style-spdmn>','<yvmqznrm>'], label='Style')
|
| 301 |
+
value="<hawaiian shirt>",
|
| 302 |
+
label=styles_label,
|
| 303 |
+
style="width: 100%"
|
| 304 |
+
),
|
| 305 |
+
],
|
| 306 |
+
outputs=[
|
| 307 |
+
gr.Gallery(label="Generated Images", show_label=False, elem_id="gallery", columns=[2], rows=[2],
|
| 308 |
+
object_fit="contain", style="max-width: 800px; margin: 20px auto;"),
|
| 309 |
+
],
|
| 310 |
+
title=title,
|
| 311 |
+
description=instructions,
|
| 312 |
+
theme="compact" # Apply a predefined theme
|
| 313 |
+
)
|
| 314 |
|
| 315 |
|
| 316 |
demo.launch(debug=True)
|