Update app.py
Browse files
app.py
CHANGED
@@ -44,14 +44,14 @@ with gr.Blocks(css=css) as demo:
|
|
44 |
run_button = gr.Button("Run", scale=0)
|
45 |
result = gr.Image(label="Result", show_label=False)
|
46 |
|
47 |
-
with gr.Accordion("Advanced Settings", open=False):
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
gr.Examples(
|
57 |
examples=examples,
|
@@ -62,7 +62,8 @@ with gr.Blocks(css=css) as demo:
|
|
62 |
|
63 |
run_button.click(
|
64 |
fn=infer,
|
65 |
-
inputs=[prompt, num_inference_steps],
|
|
|
66 |
outputs=[result]
|
67 |
)
|
68 |
|
|
|
44 |
run_button = gr.Button("Run", scale=0)
|
45 |
result = gr.Image(label="Result", show_label=False)
|
46 |
|
47 |
+
#with gr.Accordion("Advanced Settings", open=False):
|
48 |
+
# num_inference_steps = gr.Slider(
|
49 |
+
# label="Number of inference steps",
|
50 |
+
# minimum=1,
|
51 |
+
# maximum=50,
|
52 |
+
# step=1,
|
53 |
+
# value=28,
|
54 |
+
# )
|
55 |
|
56 |
gr.Examples(
|
57 |
examples=examples,
|
|
|
62 |
|
63 |
run_button.click(
|
64 |
fn=infer,
|
65 |
+
#inputs=[prompt, num_inference_steps],
|
66 |
+
inputs=[prompt],
|
67 |
outputs=[result]
|
68 |
)
|
69 |
|