dreamdrop-art commited on
Commit
d157ba8
1 Parent(s): bf7aa94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -500,8 +500,11 @@ with gr.Blocks(css=css) as demo:
500
  with gr.Tab("XL Inference"):
501
  with gr.Row():
502
  with gr.Column(scale=6):
503
- xl_model = gr.Dropdown(interactive=True, show_label=True,
504
  label="Stable Diffusion XL Checkpoint", choices=prodia_client.xl_list_models())
 
 
 
505
 
506
  with gr.Tab("txt2img"):
507
  with gr.Row():
@@ -525,8 +528,8 @@ with gr.Blocks(css=css) as demo:
525
 
526
  with gr.Row():
527
  with gr.Column(scale=1):
528
- xl_width = gr.Slider(label="Width", maximum=1024, value=512, step=8)
529
- xl_height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
530
 
531
  with gr.Column(scale=1):
532
  xl_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
@@ -567,8 +570,8 @@ with gr.Blocks(css=css) as demo:
567
  xl_i2i_steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=25, value=20, step=1)
568
  with gr.Row():
569
  with gr.Column(scale=1):
570
- xl_i2i_width = gr.Slider(label="Width", maximum=1024, value=512, step=8)
571
- xl_i2i_height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
572
 
573
  with gr.Column(scale=1):
574
  xl_i2i_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
@@ -592,8 +595,8 @@ with gr.Blocks(css=css) as demo:
592
  xl_send_to_png_i2i.click(send_to_img2img_def, inputs=xl_i2i_past_url, outputs=image_input)
593
  with gr.Tab("HuggingFace Inference"):
594
  with gr.Row():
595
- gr.Markdown("Add your model from HF.co, enter model ID.")
596
  hf_model = gr.Dropdown(label="HuggingFace checkpoint", choices=["runwayml/stable-diffusion-v1-5", "stabilityai/stable-diffusion-2-1", "dataautogpt3/OpenDalleV1.1", "CompVis/stable-diffusion-v1-4", "playgroundai/playground-v2-1024px-aesthetic", "prompthero/openjourney", "openskyml/dreamdrop-v1", "SG161222/Realistic_Vision_V1.4", "digiplay/AbsoluteReality_v1.8.1", "openskyml/dalle-3-xl", "Lykon/dreamshaper-7", "Pclanglais/Mickey-1928"], value="runwayml/stable-diffusion-v1-5", allow_custom_value=True, interactive=True)
 
597
  with gr.Row():
598
  with gr.Column(scale=6, min_width=600):
599
  hf_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3, scale=3)
 
500
  with gr.Tab("XL Inference"):
501
  with gr.Row():
502
  with gr.Column(scale=6):
503
+ xl_model = gr.Dropdown(interactive=True, show_label=True, value="juggernautXL_v45.safetensors [e75f5471]",
504
  label="Stable Diffusion XL Checkpoint", choices=prodia_client.xl_list_models())
505
+ gr.Markdown("""
506
+ Generate with new XL-models
507
+ """)
508
 
509
  with gr.Tab("txt2img"):
510
  with gr.Row():
 
528
 
529
  with gr.Row():
530
  with gr.Column(scale=1):
531
+ xl_width = gr.Slider(label="Width", maximum=2048, value=1024, step=8)
532
+ xl_height = gr.Slider(label="Height", maximum=2048, value=1024, step=8)
533
 
534
  with gr.Column(scale=1):
535
  xl_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
 
570
  xl_i2i_steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=25, value=20, step=1)
571
  with gr.Row():
572
  with gr.Column(scale=1):
573
+ xl_i2i_width = gr.Slider(label="Width", maximum=2048, value=1024, step=8)
574
+ xl_i2i_height = gr.Slider(label="Height", maximum=2048, value=1024, step=8)
575
 
576
  with gr.Column(scale=1):
577
  xl_i2i_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
 
595
  xl_send_to_png_i2i.click(send_to_img2img_def, inputs=xl_i2i_past_url, outputs=image_input)
596
  with gr.Tab("HuggingFace Inference"):
597
  with gr.Row():
 
598
  hf_model = gr.Dropdown(label="HuggingFace checkpoint", choices=["runwayml/stable-diffusion-v1-5", "stabilityai/stable-diffusion-2-1", "dataautogpt3/OpenDalleV1.1", "CompVis/stable-diffusion-v1-4", "playgroundai/playground-v2-1024px-aesthetic", "prompthero/openjourney", "openskyml/dreamdrop-v1", "SG161222/Realistic_Vision_V1.4", "digiplay/AbsoluteReality_v1.8.1", "openskyml/dalle-3-xl", "Lykon/dreamshaper-7", "Pclanglais/Mickey-1928"], value="runwayml/stable-diffusion-v1-5", allow_custom_value=True, interactive=True)
599
+ gr.Markdown("Add your model from HF.co, enter model ID.")
600
  with gr.Row():
601
  with gr.Column(scale=6, min_width=600):
602
  hf_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3, scale=3)