Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,13 +32,13 @@ custom_js = RES + "/_custom.js"
|
|
| 32 |
|
| 33 |
custom_head = f"""
|
| 34 |
<link rel="stylesheet" href="{fontawesome_css}">
|
| 35 |
-
<link rel="stylesheet" href="{catppuccin_css}">
|
| 36 |
<link rel="apple-touch-icon" sizes="180x180" href="file=_res/assets/favicons/apple-touch-icon.png">
|
| 37 |
<link rel="icon" type="image/png" sizes="32x32" href="file=_res/assets/favicons/favicon-32x32.png">
|
| 38 |
<link rel="icon" type="image/png" sizes="16x16" href="file=_res/assets/favicons/favicon-16x16.png">
|
| 39 |
<link rel="icon" type="image/x-icon" href="file=_res/assets/favicons/favicon.ico">
|
| 40 |
<link rel="manifest" href="file=_res/assets/favicons/site.webmanifest">
|
| 41 |
"""
|
|
|
|
| 42 |
|
| 43 |
theme = gr.themes.Soft(
|
| 44 |
primary_hue="orange",
|
|
@@ -164,7 +164,7 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
|
|
| 164 |
gr.Markdown(""" """)
|
| 165 |
with gr.Tab("Image Generator"):
|
| 166 |
with gr.Row():
|
| 167 |
-
with gr.Column(scale=
|
| 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_id="prompt_input", elem_classes="prompt-input", autofocus=True)
|
|
@@ -184,7 +184,7 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
|
|
| 184 |
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)
|
| 185 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
| 186 |
|
| 187 |
-
with gr.Column(scale=
|
| 188 |
with gr.Row():
|
| 189 |
with gr.Column(scale=1):
|
| 190 |
with gr.Row():
|
|
|
|
| 32 |
|
| 33 |
custom_head = f"""
|
| 34 |
<link rel="stylesheet" href="{fontawesome_css}">
|
|
|
|
| 35 |
<link rel="apple-touch-icon" sizes="180x180" href="file=_res/assets/favicons/apple-touch-icon.png">
|
| 36 |
<link rel="icon" type="image/png" sizes="32x32" href="file=_res/assets/favicons/favicon-32x32.png">
|
| 37 |
<link rel="icon" type="image/png" sizes="16x16" href="file=_res/assets/favicons/favicon-16x16.png">
|
| 38 |
<link rel="icon" type="image/x-icon" href="file=_res/assets/favicons/favicon.ico">
|
| 39 |
<link rel="manifest" href="file=_res/assets/favicons/site.webmanifest">
|
| 40 |
"""
|
| 41 |
+
# <link rel="stylesheet" href="{catppuccin_css}">
|
| 42 |
|
| 43 |
theme = gr.themes.Soft(
|
| 44 |
primary_hue="orange",
|
|
|
|
| 164 |
gr.Markdown(""" """)
|
| 165 |
with gr.Tab("Image Generator"):
|
| 166 |
with gr.Row():
|
| 167 |
+
with gr.Column(scale=2): # min_width=420,
|
| 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_id="prompt_input", elem_classes="prompt-input", autofocus=True)
|
|
|
|
| 184 |
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)
|
| 185 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
| 186 |
|
| 187 |
+
with gr.Column(scale=4): # min_width=600,
|
| 188 |
with gr.Row():
|
| 189 |
with gr.Column(scale=1):
|
| 190 |
with gr.Row():
|