hostin commited on
Commit
2ec2579
1 Parent(s): d9d976a

Changing default values

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -60,13 +60,13 @@ def generate_and_display_images(model_selection, scenery, style, height, width,
60
  iface = gr.Interface(
61
  fn=generate_and_display_images,
62
  inputs=[
63
- gr.components.Dropdown(choices=["stabilityai/sdxl-turbo", "stabilityai/stable-diffusion-xl-base-1.0", "runwayml/stable-diffusion-v1-5", "dreamlike-art/dreamlike-photoreal-2.0", "Kardbord/stable-diffusion-v1-5-unsafe"], label="Model Selection"),
64
  gr.components.Textbox(label="Scenery", placeholder="Describe the scenery you want in the image"),
65
  gr.components.Textbox(label="Style", placeholder="Describe the style of the image (e.g., photorealistic, liminal, dark)"),
66
  gr.components.Slider(minimum=1, maximum=2048, step=1, value=1024, label="Height"),
67
  gr.components.Slider(minimum=1, maximum=2048, step=1, value=576, label="Width"),
68
- gr.components.Number(value=10, label="Number of Images"),
69
- gr.components.Slider(minimum=0, maximum=60, step=1, value=30, label="Number of Inference Steps"),
70
  gr.components.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.16, label="High Noise Fraction"),
71
  gr.components.Slider(minimum=0.0, maximum=10.0, step=0.1, value=8, label="Guidance Scale"),
72
  gr.components.Textbox(value="", label="Negative Prompt"),
 
60
  iface = gr.Interface(
61
  fn=generate_and_display_images,
62
  inputs=[
63
+ gr.components.Dropdown(value="dreamlike-art/dreamlike-photoreal-2.0", choices=["stabilityai/sdxl-turbo", "stabilityai/stable-diffusion-xl-base-1.0", "runwayml/stable-diffusion-v1-5", "dreamlike-art/dreamlike-photoreal-2.0", "Kardbord/stable-diffusion-v1-5-unsafe"], label="Model Selection"),
64
  gr.components.Textbox(label="Scenery", placeholder="Describe the scenery you want in the image"),
65
  gr.components.Textbox(label="Style", placeholder="Describe the style of the image (e.g., photorealistic, liminal, dark)"),
66
  gr.components.Slider(minimum=1, maximum=2048, step=1, value=1024, label="Height"),
67
  gr.components.Slider(minimum=1, maximum=2048, step=1, value=576, label="Width"),
68
+ gr.components.Number(value=1, label="Number of Images"),
69
+ gr.components.Slider(minimum=0, maximum=60, step=1, value=20, label="Number of Inference Steps"),
70
  gr.components.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.16, label="High Noise Fraction"),
71
  gr.components.Slider(minimum=0.0, maximum=10.0, step=0.1, value=8, label="Guidance Scale"),
72
  gr.components.Textbox(value="", label="Negative Prompt"),