johann-foerster commited on
Commit
03fc011
·
1 Parent(s): 5b43fc4

translate UI to german, infotext, styling

Browse files
Files changed (3) hide show
  1. modules/html.py +16 -1
  2. modules/sdxl_styles.py +29 -30
  3. webui.py +23 -13
modules/html.py CHANGED
@@ -74,7 +74,9 @@ progress::after {
74
  }
75
 
76
  .generate_button {
77
- min-height: 80px !important;
 
 
78
  }
79
 
80
  .stylebox label span {
@@ -92,6 +94,19 @@ progress::after {
92
  box-shadow: none !important;
93
  }
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  '''
96
  progress_html = '''
97
  <div class="loader-container" style="visibility:*visibility*;max-width:1280px;">
 
74
  }
75
 
76
  .generate_button {
77
+ min-height: 166px !important;
78
+ white-space: pre-line !important;
79
+ font-size: 1.33em !important;
80
  }
81
 
82
  .stylebox label span {
 
94
  box-shadow: none !important;
95
  }
96
 
97
+ #prompt_examples > .label {
98
+ display: none;
99
+ }
100
+
101
+ .input-label h5 {
102
+ margin: 0 0 -10px 0 !important;
103
+ }
104
+
105
+ .icon-buttons > a > button > div, .icon-buttons > button > div {
106
+ width: 2em;
107
+ height: 2em;
108
+ }
109
+
110
  '''
111
  progress_html = '''
112
  <div class="loader-container" style="visibility:*visibility*;max-width:1280px;">
modules/sdxl_styles.py CHANGED
@@ -2,7 +2,7 @@
2
 
3
  styles = [
4
  {
5
- "name": "Cinematic",
6
  "prompt": "(((christmas card))), cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
7
  "negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured"
8
  },
@@ -12,17 +12,17 @@ styles = [
12
  "negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast"
13
  },
14
  {
15
- "name": "Clay",
16
  "prompt": "(((christmas card))), play-doh style {prompt} . sculpture, clay art, centered composition, Claymation",
17
  "negative_prompt": "sloppy, messy, grainy, highly detailed, ultra textured, photo"
18
  },
19
  {
20
- "name": "Line art",
21
  "prompt": "(((christmas card))), line art drawing {prompt} . professional, sleek, modern, minimalist, graphic, line art, vector graphics",
22
  "negative_prompt": "anime, photorealistic, 35mm film, deformed, glitch, blurry, noisy, off-center, deformed, cross-eyed, closed eyes, bad anatomy, ugly, disfigured, mutated, realism, realistic, impressionism, expressionism, oil, acrylic"
23
  },
24
  {
25
- "name": "Low poly",
26
  "prompt": "(((christmas card))), low-poly style {prompt} . low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition",
27
  "negative_prompt": "noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
28
  },
@@ -32,27 +32,27 @@ styles = [
32
  "negative_prompt": "noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
33
  },
34
  {
35
- "name": "Poster",
36
  "prompt": "(((christmas card))), Advertising poster style {prompt} . Professional, modern, product-focused, commercial, eye-catching, highly detailed",
37
  "negative_prompt": "noisy, blurry, amateurish, sloppy, unattractive"
38
  },
39
  {
40
- "name": "Car",
41
  "prompt": "(((christmas card))), Automotive advertisement style {prompt} . Sleek, dynamic, professional, commercial, vehicle-focused, high-resolution, highly detailed",
42
  "negative_prompt": "noisy, blurry, unattractive, sloppy, unprofessional"
43
  },
44
  {
45
- "name": "Fashion",
46
  "prompt": "(((christmas card))), Fashion editorial style {prompt} . High fashion, trendy, stylish, editorial, magazine style, professional, highly detailed",
47
  "negative_prompt": "outdated, blurry, noisy, unattractive, sloppy"
48
  },
49
  {
50
- "name": "Pixel art",
51
  "prompt": "(((christmas card))), pixel-art {prompt} . low-res, blocky, pixel art style, 8-bit graphics",
52
  "negative_prompt": "sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic"
53
  },
54
  {
55
- "name": "Abstract",
56
  "prompt": "(((christmas card))), abstract expressionist painting {prompt} . energetic brushwork, bold colors, abstract forms, expressive, emotional",
57
  "negative_prompt": "realistic, photorealistic, low contrast, plain, simple, monochrome"
58
  },
@@ -62,7 +62,7 @@ styles = [
62
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
63
  },
64
  {
65
- "name": "Psychedelic",
66
  "prompt": "(((christmas card))), psychedelic style {prompt} . vibrant colors, swirling patterns, abstract forms, surreal, trippy",
67
  "negative_prompt": "monochrome, black and white, low contrast, realistic, photorealistic, plain, simple"
68
  },
@@ -72,17 +72,17 @@ styles = [
72
  "negative_prompt": "deformed, glitch, noisy, low contrast, anime, photorealistic"
73
  },
74
  {
75
- "name": "Watercolor",
76
  "prompt": "(((christmas card))), watercolor painting {prompt} . vibrant, beautiful, painterly, detailed, textural, artistic",
77
  "negative_prompt": "anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy"
78
  },
79
  {
80
- "name": "Cyberpunk city",
81
  "prompt": "(((christmas card))), cyberpunk cityscape {prompt} . neon lights, dark alleys, skyscrapers, futuristic, vibrant colors, high contrast, highly detailed",
82
  "negative_prompt": "natural, rural, deformed, low contrast, black and white, sketch, watercolor"
83
  },
84
  {
85
- "name": "Cyberpunk game",
86
  "prompt": "(((christmas card))), cyberpunk game style {prompt} . neon, dystopian, futuristic, digital, vibrant, detailed, high contrast, reminiscent of cyberpunk genre video games",
87
  "negative_prompt": "historical, natural, rustic, low detailed"
88
  },
@@ -97,47 +97,47 @@ styles = [
97
  "negative_prompt": "smooth, realistic, detailed, photorealistic, noise, blurry, deformed"
98
  },
99
  {
100
- "name": "Strategy game",
101
  "prompt": "(((christmas card))), strategy game style {prompt} . overhead view, detailed map, units, reminiscent of real-time strategy video games",
102
  "negative_prompt": "first-person view, modern, photorealistic"
103
  },
104
  {
105
- "name": "Dystopian",
106
  "prompt": "(((christmas card))), dystopian style {prompt} . bleak, post-apocalyptic, somber, dramatic, highly detailed",
107
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, cheerful, optimistic, vibrant, colorful"
108
  },
109
  {
110
- "name": "Fairy tale",
111
  "prompt": "(((christmas card))), fairy tale {prompt} . magical, fantastical, enchanting, storybook style, highly detailed",
112
  "negative_prompt": "realistic, modern, ordinary, mundane"
113
  },
114
  {
115
- "name": "Gothic",
116
  "prompt": "(((christmas card))), gothic style {prompt} . dark, mysterious, haunting, dramatic, ornate, detailed",
117
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, cheerful, optimistic"
118
  },
119
  {
120
- "name": "Metropolis",
121
  "prompt": "(((christmas card))), metropolis-themed {prompt} . urban, cityscape, skyscrapers, modern, futuristic, highly detailed",
122
  "negative_prompt": "rural, natural, rustic, historical, simple"
123
  },
124
  {
125
- "name": "Monochrome",
126
  "prompt": "(((christmas card))), monochrome {prompt} . black and white, contrast, tone, texture, detailed",
127
  "negative_prompt": "colorful, vibrant, noisy, blurry, deformed"
128
  },
129
  {
130
- "name": "Space",
131
  "prompt": "(((christmas card))), space-themed {prompt} . cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed",
132
  "negative_prompt": "earthly, mundane, ground-based, realism"
133
  },
134
  {
135
- "name": "Stained glass",
136
  "prompt": "(((christmas card))), stained glass style {prompt} . vibrant, beautiful, translucent, intricate, detailed",
137
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
138
  },
139
  {
140
- "name": "Tribal",
141
  "prompt": "(((christmas card))), tribal style {prompt} . indigenous, ethnic, traditional patterns, bold, natural colors, highly detailed",
142
  "negative_prompt": "modern, futuristic, minimalist, pastel"
143
  },
@@ -152,40 +152,39 @@ styles = [
152
  "negative_prompt": "painting, drawing, 2D, noisy, blurry, deformed"
153
  },
154
  {
155
- "name": "Paper mache",
156
  "prompt": "(((christmas card))), paper mache representation of {prompt} . 3D, sculptural, textured, handmade, vibrant, fun",
157
  "negative_prompt": "2D, flat, photo, sketch, digital art, deformed, noisy, blurry"
158
  },
159
  {
160
- "name": "Paper quilling",
161
  "prompt": "(((christmas card))), paper quilling art of {prompt} . intricate, delicate, curling, rolling, shaping, coiling, loops, 3D, dimensional, ornamental",
162
  "negative_prompt": "photo, painting, drawing, 2D, flat, deformed, noisy, blurry"
163
  },
164
-
165
  {
166
- "name": "Papercut shadow box",
167
  "prompt": "(((christmas card))), 3D papercut shadow box of {prompt} . layered, dimensional, depth, silhouette, shadow, papercut, handmade, high contrast",
168
  "negative_prompt": "painting, drawing, photo, 2D, flat, high detail, blurry, noisy, disfigured"
169
  },
170
  {
171
- "name": "Stacked papercut",
172
  "prompt": "(((christmas card))), stacked papercut art of {prompt} . 3D, layered, dimensional, depth, precision cut, stacked layers, papercut, high contrast",
173
  "negative_prompt": "2D, flat, noisy, blurry, painting, drawing, photo, deformed"
174
  },
175
  {
176
- "name": "Film noir",
177
  "prompt": "(((christmas card))), film noir style {prompt} . monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic",
178
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, vibrant, colorful"
179
  },
180
  {
181
- "name": "Neon noir",
182
  "prompt": "(((christmas card))), neon noir {prompt} . cyberpunk, dark, rainy streets, neon signs, high contrast, low light, vibrant, highly detailed",
183
  "negative_prompt": "bright, sunny, daytime, low contrast, black and white, sketch, watercolor"
184
  }
185
  ]
186
 
187
  styles = {k['name']: (k['prompt'], k['negative_prompt']) for k in styles}
188
- default_style = styles['Cinematic']
189
  style_keys = list(styles.keys())
190
 
191
 
 
2
 
3
  styles = [
4
  {
5
+ "name": "Kinofilm",
6
  "prompt": "(((christmas card))), cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
7
  "negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured"
8
  },
 
12
  "negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast"
13
  },
14
  {
15
+ "name": "Ton",
16
  "prompt": "(((christmas card))), play-doh style {prompt} . sculpture, clay art, centered composition, Claymation",
17
  "negative_prompt": "sloppy, messy, grainy, highly detailed, ultra textured, photo"
18
  },
19
  {
20
+ "name": "Linienkunst",
21
  "prompt": "(((christmas card))), line art drawing {prompt} . professional, sleek, modern, minimalist, graphic, line art, vector graphics",
22
  "negative_prompt": "anime, photorealistic, 35mm film, deformed, glitch, blurry, noisy, off-center, deformed, cross-eyed, closed eyes, bad anatomy, ugly, disfigured, mutated, realism, realistic, impressionism, expressionism, oil, acrylic"
23
  },
24
  {
25
+ "name": "Low Poly",
26
  "prompt": "(((christmas card))), low-poly style {prompt} . low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition",
27
  "negative_prompt": "noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
28
  },
 
32
  "negative_prompt": "noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
33
  },
34
  {
35
+ "name": "Plakat",
36
  "prompt": "(((christmas card))), Advertising poster style {prompt} . Professional, modern, product-focused, commercial, eye-catching, highly detailed",
37
  "negative_prompt": "noisy, blurry, amateurish, sloppy, unattractive"
38
  },
39
  {
40
+ "name": "Fahrzeug/Auto",
41
  "prompt": "(((christmas card))), Automotive advertisement style {prompt} . Sleek, dynamic, professional, commercial, vehicle-focused, high-resolution, highly detailed",
42
  "negative_prompt": "noisy, blurry, unattractive, sloppy, unprofessional"
43
  },
44
  {
45
+ "name": "Mode",
46
  "prompt": "(((christmas card))), Fashion editorial style {prompt} . High fashion, trendy, stylish, editorial, magazine style, professional, highly detailed",
47
  "negative_prompt": "outdated, blurry, noisy, unattractive, sloppy"
48
  },
49
  {
50
+ "name": "Pixelkunst",
51
  "prompt": "(((christmas card))), pixel-art {prompt} . low-res, blocky, pixel art style, 8-bit graphics",
52
  "negative_prompt": "sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic"
53
  },
54
  {
55
+ "name": "Abstrakt",
56
  "prompt": "(((christmas card))), abstract expressionist painting {prompt} . energetic brushwork, bold colors, abstract forms, expressive, emotional",
57
  "negative_prompt": "realistic, photorealistic, low contrast, plain, simple, monochrome"
58
  },
 
62
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
63
  },
64
  {
65
+ "name": "Psychedelisch",
66
  "prompt": "(((christmas card))), psychedelic style {prompt} . vibrant colors, swirling patterns, abstract forms, surreal, trippy",
67
  "negative_prompt": "monochrome, black and white, low contrast, realistic, photorealistic, plain, simple"
68
  },
 
72
  "negative_prompt": "deformed, glitch, noisy, low contrast, anime, photorealistic"
73
  },
74
  {
75
+ "name": "Aquarell",
76
  "prompt": "(((christmas card))), watercolor painting {prompt} . vibrant, beautiful, painterly, detailed, textural, artistic",
77
  "negative_prompt": "anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy"
78
  },
79
  {
80
+ "name": "Cyberpunk-Stadt",
81
  "prompt": "(((christmas card))), cyberpunk cityscape {prompt} . neon lights, dark alleys, skyscrapers, futuristic, vibrant colors, high contrast, highly detailed",
82
  "negative_prompt": "natural, rural, deformed, low contrast, black and white, sketch, watercolor"
83
  },
84
  {
85
+ "name": "Cyberpunk-Spiel",
86
  "prompt": "(((christmas card))), cyberpunk game style {prompt} . neon, dystopian, futuristic, digital, vibrant, detailed, high contrast, reminiscent of cyberpunk genre video games",
87
  "negative_prompt": "historical, natural, rustic, low detailed"
88
  },
 
97
  "negative_prompt": "smooth, realistic, detailed, photorealistic, noise, blurry, deformed"
98
  },
99
  {
100
+ "name": "Strategiespiel",
101
  "prompt": "(((christmas card))), strategy game style {prompt} . overhead view, detailed map, units, reminiscent of real-time strategy video games",
102
  "negative_prompt": "first-person view, modern, photorealistic"
103
  },
104
  {
105
+ "name": "Dystopisch",
106
  "prompt": "(((christmas card))), dystopian style {prompt} . bleak, post-apocalyptic, somber, dramatic, highly detailed",
107
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, cheerful, optimistic, vibrant, colorful"
108
  },
109
  {
110
+ "name": "Märchen",
111
  "prompt": "(((christmas card))), fairy tale {prompt} . magical, fantastical, enchanting, storybook style, highly detailed",
112
  "negative_prompt": "realistic, modern, ordinary, mundane"
113
  },
114
  {
115
+ "name": "Gotisch",
116
  "prompt": "(((christmas card))), gothic style {prompt} . dark, mysterious, haunting, dramatic, ornate, detailed",
117
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, cheerful, optimistic"
118
  },
119
  {
120
+ "name": "Metropole",
121
  "prompt": "(((christmas card))), metropolis-themed {prompt} . urban, cityscape, skyscrapers, modern, futuristic, highly detailed",
122
  "negative_prompt": "rural, natural, rustic, historical, simple"
123
  },
124
  {
125
+ "name": "Monochrom",
126
  "prompt": "(((christmas card))), monochrome {prompt} . black and white, contrast, tone, texture, detailed",
127
  "negative_prompt": "colorful, vibrant, noisy, blurry, deformed"
128
  },
129
  {
130
+ "name": "Weltraum",
131
  "prompt": "(((christmas card))), space-themed {prompt} . cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed",
132
  "negative_prompt": "earthly, mundane, ground-based, realism"
133
  },
134
  {
135
+ "name": "Buntglas",
136
  "prompt": "(((christmas card))), stained glass style {prompt} . vibrant, beautiful, translucent, intricate, detailed",
137
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
138
  },
139
  {
140
+ "name": "Stammeskunst",
141
  "prompt": "(((christmas card))), tribal style {prompt} . indigenous, ethnic, traditional patterns, bold, natural colors, highly detailed",
142
  "negative_prompt": "modern, futuristic, minimalist, pastel"
143
  },
 
152
  "negative_prompt": "painting, drawing, 2D, noisy, blurry, deformed"
153
  },
154
  {
155
+ "name": "Papiermaché",
156
  "prompt": "(((christmas card))), paper mache representation of {prompt} . 3D, sculptural, textured, handmade, vibrant, fun",
157
  "negative_prompt": "2D, flat, photo, sketch, digital art, deformed, noisy, blurry"
158
  },
159
  {
160
+ "name": "Papierkräuseln",
161
  "prompt": "(((christmas card))), paper quilling art of {prompt} . intricate, delicate, curling, rolling, shaping, coiling, loops, 3D, dimensional, ornamental",
162
  "negative_prompt": "photo, painting, drawing, 2D, flat, deformed, noisy, blurry"
163
  },
 
164
  {
165
+ "name": "Scherenschnitt-Schattenbox",
166
  "prompt": "(((christmas card))), 3D papercut shadow box of {prompt} . layered, dimensional, depth, silhouette, shadow, papercut, handmade, high contrast",
167
  "negative_prompt": "painting, drawing, photo, 2D, flat, high detail, blurry, noisy, disfigured"
168
  },
169
  {
170
+ "name": "Gestapelte Scherenschnitte",
171
  "prompt": "(((christmas card))), stacked papercut art of {prompt} . 3D, layered, dimensional, depth, precision cut, stacked layers, papercut, high contrast",
172
  "negative_prompt": "2D, flat, noisy, blurry, painting, drawing, photo, deformed"
173
  },
174
  {
175
+ "name": "Film Noir",
176
  "prompt": "(((christmas card))), film noir style {prompt} . monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic",
177
  "negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, vibrant, colorful"
178
  },
179
  {
180
+ "name": "Neon Noir",
181
  "prompt": "(((christmas card))), neon noir {prompt} . cyberpunk, dark, rainy streets, neon signs, high contrast, low light, vibrant, highly detailed",
182
  "negative_prompt": "bright, sunny, daytime, low contrast, black and white, sketch, watercolor"
183
  }
184
  ]
185
 
186
  styles = {k['name']: (k['prompt'], k['negative_prompt']) for k in styles}
187
+ default_style = styles['Kinofilm']
188
  style_keys = list(styles.keys())
189
 
190
 
webui.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
  import random
3
  import time
4
  import shared
@@ -39,25 +40,34 @@ def generate(*args):
39
  finished = True
40
  return
41
 
42
-
43
- shared.gradio_root = gr.Blocks(title='QualityMinds AI Christmas Card Maker', css=modules.html.css)
44
  with shared.gradio_root:
45
  gr.Markdown(
46
  """
47
- # QualityMinds AI Christmas Card Maker
48
- Type a promt and click generate. Try our examples and different styles.
 
 
49
  """)
50
  with gr.Row(elem_classes='type_row'):
51
- with gr.Column(scale=0.7):
52
- prompt = gr.Textbox(label="Prompt", value="", placeholder="What's on your christmas card?", autofocus=True, elem_classes='type_row', lines=2)
53
- with gr.Column(scale=0.15, min_width="120px"):
54
- style_selection = gr.Dropdown(label='Style', choices=style_keys, value='Cinematic', elem_classes="stylebox")
55
- with gr.Column(scale=0.15, min_width="120px"):
56
- run_button = gr.Button(label="Generate", value="Generate", variant='primary', elem_classes='generate_button')
 
 
 
 
 
 
 
 
 
57
  progress_html = gr.HTML(visible=False, elem_id='progress-bar', elem_classes='progress-bar')
58
- gr.Examples(examples=["Santa Claus with his sack full of gifts", "Scenic winter village inside a snow globe", \
59
- "Cute penguins wrapped up in scarves and hats", "Snowy trees and a reindeer"], inputs=[prompt], cache_examples=False)
60
- generated_image = gr.Image(show_label=False, width=1280, value="resources/init.png", show_share_button=True )
61
 
62
  run_button.click(fn=generate, inputs=[prompt, style_selection], outputs=[run_button, progress_html, generated_image])
63
 
 
1
  import gradio as gr
2
+ from gradio.themes.utils.colors import Color
3
  import random
4
  import time
5
  import shared
 
40
  finished = True
41
  return
42
 
43
+ qm_color=Color(name="qm", c50="#effaed",c100="#def5db",c200="#64b445",c300="#c6eec0",c400="#b9ebb3",c500="#64b445",c600="#55993b",c700="#467e30",c800="#325a23",c900="#233f18",c950="#192d11")
44
+ shared.gradio_root = gr.Blocks(title='QualityMinds AI Christmas Card Maker', css=modules.html.css, theme=gr.themes.Default(primary_hue=qm_color))
45
  with shared.gradio_root:
46
  gr.Markdown(
47
  """
48
+ # QualityMinds KI Weihnachtskarten-Generator
49
+ * Beschreibe das Motiv der Weihnachtskarte in einem Prompt (Englisch), wähle einen Stil und generiere!
50
+ * Zur Übersetzung einer Beschreibung ins Englische kann beispielsweise [deepl.com](https://www.deepl.com/translator#de/Schneekugeln) helfen.
51
+ * Das Tool basiert auf [Stable Diffusion XL](https://stability.ai/stable-diffusion) v1.0 und der Oberfläche [Fooocus](https://github.com/lllyasviel/Fooocus), der Code ist OpenSource auf [Github](https://github.com/QualityMinds/AI-Christmas-Cards) verfügbar.
52
  """)
53
  with gr.Row(elem_classes='type_row'):
54
+ with gr.Column(scale=2):
55
+ gr.Markdown("##### Prompt (Englisch)", elem_classes="input-label")
56
+ prompt = gr.Textbox(label="Prompt (Englisch)", value="", placeholder="Was möchtest Du auf der Weihnachtskarte abbilden?",
57
+ autofocus=True, elem_classes='type_row', container=False, lines=2)
58
+ description_de = gr.Textbox(label="Beschreibung", visible=False)
59
+ gr.Markdown("##### Beispiele", elem_classes="input-label")
60
+ gr.Examples(examples=[["Der Weihnachtsmann mit seinem Sack voller Geschenke", "Santa Claus with his sack full of gifts"],
61
+ ["Malerisches Winterdorf in einer Schneekugel", "Scenic winter village inside a snow globe"],
62
+ ["Niedliche Pinguine in Schals und Mützen eingewickelt", "Cute penguins wrapped up in scarves and hats"]],
63
+ inputs=[description_de, prompt], elem_id="prompt_examples", cache_examples=False)
64
+
65
+ with gr.Column(scale=1, min_width="120px"):
66
+ gr.Markdown("##### Stil", elem_classes="input-label")
67
+ style_selection = gr.Dropdown(label='Stil', choices=style_keys, value='Kinofilm', container=False)
68
+ run_button = gr.Button(value="Weihnachtskarte\nerstellen", variant='primary', elem_classes='generate_button')
69
  progress_html = gr.HTML(visible=False, elem_id='progress-bar', elem_classes='progress-bar')
70
+ generated_image = gr.Image(label="Weihnachtskarte", width=1280, value="resources/init.png" )
 
 
71
 
72
  run_button.click(fn=generate, inputs=[prompt, style_selection], outputs=[run_button, progress_html, generated_image])
73