bghira commited on
Commit
bb98731
1 Parent(s): c5d814d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -31,9 +31,9 @@ def generate(prompt, guidance_scale, num_inference_steps, resolution, negative_p
31
 
32
  # Example prompts to demonstrate the model's capabilities
33
  example_prompts = [
34
- ["A futuristic cityscape at night under a starry sky", 3.5, 25, "blurry, overexposed"],
35
- ["A serene landscape with a flowing river and autumn trees", 3, 20, "crowded, noisy"],
36
- ["An abstract painting of joy and energy in bright colors", 3.0, 30, "dark, dull"]
37
  ]
38
 
39
  # Create a Gradio interface, 1024x1024,1152x960,896x1152
@@ -41,8 +41,8 @@ iface = gr.Interface(
41
  fn=generate,
42
  inputs=[
43
  gr.Text(label="Enter your prompt"),
44
- gr.Slider(1, 20, step=0.1, label="Guidance Scale", value=3.4),
45
- gr.Slider(1, 50, step=1, label="Number of Inference Steps", value=28),
46
  gr.Radio(["1024x1024", "1152x960", "896x1152"], label="Resolution", value="1152x960"),
47
  gr.Text(value="underexposed, blurry, ugly, washed-out", label="Negative Prompt")
48
  ],
 
31
 
32
  # Example prompts to demonstrate the model's capabilities
33
  example_prompts = [
34
+ ["A futuristic cityscape at night under a starry sky", 7.5, 25, "blurry, overexposed"],
35
+ ["A serene landscape with a flowing river and autumn trees", 6, 20, "crowded, noisy"],
36
+ ["An abstract painting of joy and energy in bright colors", 7.0, 30, "dark, dull"]
37
  ]
38
 
39
  # Create a Gradio interface, 1024x1024,1152x960,896x1152
 
41
  fn=generate,
42
  inputs=[
43
  gr.Text(label="Enter your prompt"),
44
+ gr.Slider(1, 20, step=0.1, label="Guidance Scale", value=7.4),
45
+ gr.Slider(1, 50, step=1, label="Number of Inference Steps", value=20),
46
  gr.Radio(["1024x1024", "1152x960", "896x1152"], label="Resolution", value="1152x960"),
47
  gr.Text(value="underexposed, blurry, ugly, washed-out", label="Negative Prompt")
48
  ],