prithivMLmods commited on
Commit
734b76a
·
verified ·
1 Parent(s): fe86637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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 = "RealVisXL_V5.0_Lightning"
332
- MODEL_CHOICES = [DEFAULT_MODEL, "RealVisXL_V4.0", "Animagine XL 4.0"]
333
  models = {
334
- "RealVisXL_V5.0_Lightning": pipe,
335
- "RealVisXL_V4.0": pipe2,
336
- "Animagine XL 4.0": pipe3
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(