rafaaa2105 commited on
Commit
ed0bfb8
1 Parent(s): 38624f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,13 +31,13 @@ with gr.Blocks() as demo:
31
  with gr.Column():
32
  model_dropdown = gr.Dropdown(choices=list(models.keys()), value=model_list[0] if model_list else None, label="Model")
33
  prompt = gr.Textbox(label="Prompt")
34
- negative_prompt = gr.Textbox(label="Negative Prompt", value="")
35
  num_inference_steps = gr.Slider(minimum=10, maximum=50, step=1, value=25, label="Number of Inference Steps")
36
  guidance_scale = gr.Slider(minimum=1, maximum=20, step=0.5, value=7.5, label="Guidance Scale")
37
  generate_btn = gr.Button("Generate Image")
38
 
39
  with gr.Column():
40
- output_image = gr.Image(label="Generated Image", height=480, width=480)
41
 
42
 
43
  generate_btn.click(generate_image, inputs=[model_dropdown, prompt, negative_prompt, num_inference_steps, guidance_scale], outputs=output_image)
 
31
  with gr.Column():
32
  model_dropdown = gr.Dropdown(choices=list(models.keys()), value=model_list[0] if model_list else None, label="Model")
33
  prompt = gr.Textbox(label="Prompt")
34
+ negative_prompt = gr.Textbox(label="Negative Prompt", value="nsfw, lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract], kid, kid looking, child, childish look")
35
  num_inference_steps = gr.Slider(minimum=10, maximum=50, step=1, value=25, label="Number of Inference Steps")
36
  guidance_scale = gr.Slider(minimum=1, maximum=20, step=0.5, value=7.5, label="Guidance Scale")
37
  generate_btn = gr.Button("Generate Image")
38
 
39
  with gr.Column():
40
+ output_image = gr.Image(label="Generated Image", height=480)
41
 
42
 
43
  generate_btn.click(generate_image, inputs=[model_dropdown, prompt, negative_prompt, num_inference_steps, guidance_scale], outputs=output_image)