Spaces:
Running
Running
Sebastiankay
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ def process(Prompt, image_width, image_height, image_seed, randomize_seed):
|
|
164 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js, title=title) as demo:
|
165 |
with gr.Tab("Image Generator"):
|
166 |
with gr.Row():
|
167 |
-
with gr.Column(scale=1):
|
168 |
with gr.Row():
|
169 |
placeholder_text = "[???] Generiert dir einen zufälligen Prompt.\n[STERN] optimiert deinen eignen Prompt.\n[RUN] generiert dein Bild."
|
170 |
text_prompt = gr.Textbox(label="Prompt", show_label=False, lines=12, max_lines=18, placeholder=placeholder_text, elem_classes="prompt-input", autofocus=True)
|
@@ -180,13 +180,13 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, title=title) as demo:
|
|
180 |
# image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=683, step=128, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1)
|
181 |
image_height = gr.Textbox(label="Höhe", value=683, lines=1, max_lines=1, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1)
|
182 |
with gr.Row():
|
183 |
-
image_ratio_buttons = gr.Radio(["16:9", "4:3", "3:2", "1:1"], value="3:2", label="Querformat", show_label=True, info=" ", interactive=True, elem_id="image_ratio_buttons", elem_classes="image-ratio-buttons", container=True, scale=2)
|
184 |
switch_width_height = gr.Button("", size="sm", elem_id="switch_width_height", elem_classes="switch-ratio-btn", variant="primary", scale=1)
|
185 |
with gr.Column():
|
186 |
image_seed = gr.Slider(label="Seed", info="Jeder Seed generiert ein anderes Bild mit dem selben Prompt", minimum=0, step=1, value=42, maximum=MAX_SEED)
|
187 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
188 |
|
189 |
-
with gr.Column(scale=3):
|
190 |
with gr.Row():
|
191 |
with gr.Column(scale=1):
|
192 |
with gr.Row():
|
|
|
164 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js, title=title) as demo:
|
165 |
with gr.Tab("Image Generator"):
|
166 |
with gr.Row():
|
167 |
+
with gr.Column(min_width=420, scale=1):
|
168 |
with gr.Row():
|
169 |
placeholder_text = "[???] Generiert dir einen zufälligen Prompt.\n[STERN] optimiert deinen eignen Prompt.\n[RUN] generiert dein Bild."
|
170 |
text_prompt = gr.Textbox(label="Prompt", show_label=False, lines=12, max_lines=18, placeholder=placeholder_text, elem_classes="prompt-input", autofocus=True)
|
|
|
180 |
# image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=683, step=128, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1)
|
181 |
image_height = gr.Textbox(label="Höhe", value=683, lines=1, max_lines=1, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1)
|
182 |
with gr.Row():
|
183 |
+
image_ratio_buttons = gr.Radio(["16:9", "4:3", "3:2", "1:1"], value="3:2", label="Querformat", show_label=True, info="Wähle zwischen den gängigsten Seitenverhältnissen.", interactive=True, elem_id="image_ratio_buttons", elem_classes="image-ratio-buttons", container=True, scale=2)
|
184 |
switch_width_height = gr.Button("", size="sm", elem_id="switch_width_height", elem_classes="switch-ratio-btn", variant="primary", scale=1)
|
185 |
with gr.Column():
|
186 |
image_seed = gr.Slider(label="Seed", info="Jeder Seed generiert ein anderes Bild mit dem selben Prompt", minimum=0, step=1, value=42, maximum=MAX_SEED)
|
187 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
188 |
|
189 |
+
with gr.Column(min_width=600, scale=3):
|
190 |
with gr.Row():
|
191 |
with gr.Column(scale=1):
|
192 |
with gr.Row():
|