Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def infer(prompt, negative_prompt):
|
|
26 |
|
27 |
image = pipeline(
|
28 |
prompt = prompt,
|
29 |
-
|
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 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
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 |
|