HelloSun commited on
Commit
2147812
·
verified ·
1 Parent(s): 50a1814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -26,7 +26,7 @@ def infer(prompt, negative_prompt):
26
 
27
  image = pipeline(
28
  prompt = prompt,
29
- #negative_prompt = negative_prompt,
30
  # guidance_scale = guidance_scale,
31
  #num_inference_steps = num_inference_steps,
32
  width = width,
@@ -72,12 +72,12 @@ with gr.Blocks(css=css) as demo:
72
  result = gr.Image(label="Result", show_label=False)
73
 
74
  with gr.Accordion("Advanced Settings", open=False):
75
- #with gr.Row():
76
- # negative_prompt = gr.Text(
77
- # label="Negative prompt",
78
- # max_lines=1,
79
- # placeholder="Enter a negative prompt",
80
- # )
81
 
82
  with gr.Row():
83
 
 
26
 
27
  image = pipeline(
28
  prompt = prompt,
29
+ negative_prompt = negative_prompt,
30
  # guidance_scale = guidance_scale,
31
  #num_inference_steps = num_inference_steps,
32
  width = width,
 
72
  result = gr.Image(label="Result", show_label=False)
73
 
74
  with gr.Accordion("Advanced Settings", open=False):
75
+ with gr.Row():
76
+ negative_prompt = gr.Text(
77
+ label="Negative prompt",
78
+ max_lines=1,
79
+ placeholder="Enter a negative prompt",
80
+ )
81
 
82
  with gr.Row():
83