Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
3f0b2ee
1
Parent(s):
1fa8c7a
Update app.py
Browse files
app.py
CHANGED
@@ -203,8 +203,11 @@ def process(Prompt, used_model, image_width, image_height, image_ratio, image_se
|
|
203 |
|
204 |
# MARK: Gradio BLOCKS UI
|
205 |
with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, title=title) as demo:
|
206 |
-
with gr.Row():
|
207 |
-
gr.Markdown("""
|
|
|
|
|
|
|
208 |
with gr.Tab("Bilder Builder"):
|
209 |
with gr.Row():
|
210 |
with gr.Column(scale=2): # min_width=420,
|
@@ -218,7 +221,8 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
|
|
218 |
with gr.Row(elem_classes="image_size_selctor_wrapper"):
|
219 |
with gr.Column(scale=1):
|
220 |
with gr.Row():
|
221 |
-
|
|
|
222 |
# with gr.Row():
|
223 |
image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=576, step=32, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=False)
|
224 |
image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=1024, step=32, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1, visible=False)
|
|
|
203 |
|
204 |
# MARK: Gradio BLOCKS UI
|
205 |
with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, title=title) as demo:
|
206 |
+
with gr.Row(elem_classes="row-header"):
|
207 |
+
gr.Markdown(f"""
|
208 |
+
<h1>{title}</h1>
|
209 |
+
<p><span style="font-weight: 600">LG Sebastian</span> <i class="winking-hand-emoji"></i> gib dem Space gerne ein <i class="heart-beat-emoji"></i></p>""",
|
210 |
+
|
211 |
with gr.Tab("Bilder Builder"):
|
212 |
with gr.Row():
|
213 |
with gr.Column(scale=2): # min_width=420,
|
|
|
221 |
with gr.Row(elem_classes="image_size_selctor_wrapper"):
|
222 |
with gr.Column(scale=1):
|
223 |
with gr.Row():
|
224 |
+
inference_models = ["FLUX-API-OLD"] # ["FLUX", "FLUX-Realism", "FLUX-Pixel", "FLUX-Anime", "FLUX-3D", "FLUX-Disney", "ANY-DARK", "Stable-Diffusion-XL-Base", "Stable-Diffusion-XL-Lightning"]
|
225 |
+
select_model = gr.Dropdown(choices=inference_models, value="FLUX-API-OLD", label="Model", elem_id="select_model", elem_classes="select-model")
|
226 |
# with gr.Row():
|
227 |
image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=576, step=32, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=False)
|
228 |
image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=1024, step=32, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1, visible=False)
|