Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -328,12 +328,12 @@ else:
|
|
328 |
print("Running on CPU; models loaded in float32.")
|
329 |
|
330 |
# A dictionary to easily choose the model based on selection.
|
331 |
-
DEFAULT_MODEL = "
|
332 |
-
MODEL_CHOICES = [DEFAULT_MODEL, "
|
333 |
models = {
|
334 |
-
"
|
335 |
-
"
|
336 |
-
"Animagine
|
337 |
}
|
338 |
|
339 |
def save_image(img, path):
|
@@ -465,6 +465,12 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
465 |
value="1x1",
|
466 |
label="Grid Size"
|
467 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
with gr.Row(visible=True):
|
469 |
filter_selection = gr.Dropdown(
|
470 |
show_label=True,
|
@@ -492,12 +498,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
492 |
value=DEFAULT_STYLE_NAME,
|
493 |
label="Quality Style",
|
494 |
)
|
495 |
-
with gr.Row(visible=True):
|
496 |
-
model_selection = gr.Dropdown(
|
497 |
-
choices=MODEL_CHOICES,
|
498 |
-
value=DEFAULT_MODEL,
|
499 |
-
label="Model Selection",
|
500 |
-
)
|
501 |
with gr.Accordion("Advanced options", open=False):
|
502 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True, visible=True)
|
503 |
negative_prompt = gr.Text(
|
|
|
328 |
print("Running on CPU; models loaded in float32.")
|
329 |
|
330 |
# A dictionary to easily choose the model based on selection.
|
331 |
+
DEFAULT_MODEL = "Lightning 5"
|
332 |
+
MODEL_CHOICES = [DEFAULT_MODEL, "Lightning 4", "Animagine 4"]
|
333 |
models = {
|
334 |
+
"Lightning 5": pipe,
|
335 |
+
"Lightning 4": pipe2,
|
336 |
+
"Animagine 4": pipe3
|
337 |
}
|
338 |
|
339 |
def save_image(img, path):
|
|
|
465 |
value="1x1",
|
466 |
label="Grid Size"
|
467 |
)
|
468 |
+
with gr.Row(visible=True):
|
469 |
+
model_selection = gr.Dropdown(
|
470 |
+
choices=MODEL_CHOICES,
|
471 |
+
value=DEFAULT_MODEL,
|
472 |
+
label="Model Selection",
|
473 |
+
)
|
474 |
with gr.Row(visible=True):
|
475 |
filter_selection = gr.Dropdown(
|
476 |
show_label=True,
|
|
|
498 |
value=DEFAULT_STYLE_NAME,
|
499 |
label="Quality Style",
|
500 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
with gr.Accordion("Advanced options", open=False):
|
502 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True, visible=True)
|
503 |
negative_prompt = gr.Text(
|