Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
•
d4f714d
1
Parent(s):
eebd0b7
Update app.py
Browse files
app.py
CHANGED
@@ -117,21 +117,10 @@ with block:
|
|
117 |
prompt = gr.Textbox(label="Prompt")
|
118 |
run_button = gr.Button(label="Run")
|
119 |
|
120 |
-
|
121 |
-
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
122 |
-
image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=512, step=256)
|
123 |
-
low_threshold = gr.Slider(label="Canny low threshold", minimum=1, maximum=255, value=100, step=1)
|
124 |
-
high_threshold = gr.Slider(label="Canny high threshold", minimum=1, maximum=255, value=200, step=1)
|
125 |
-
ddim_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
126 |
-
scale = gr.Slider(label="Guidance Scale", minimum=0.1, maximum=30.0, value=9.0, step=0.1)
|
127 |
-
seed = gr.Slider(label="Seed", minimum=0, maximum=2147483647, step=1, randomize=True)
|
128 |
-
eta = gr.Slider(label="eta (DDIM)", minimum=0.0,maximum =1.0, value=0.0, step=0.1)
|
129 |
-
a_prompt = gr.Textbox(label="Added Prompt", value='best quality, extremely detailed')
|
130 |
-
n_prompt = gr.Textbox(label="Negative Prompt",
|
131 |
-
value='longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality')
|
132 |
with gr.Column():
|
133 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
134 |
-
ips = [input_image, prompt, input_control
|
135 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
136 |
examples_list = [
|
137 |
[
|
|
|
117 |
prompt = gr.Textbox(label="Prompt")
|
118 |
run_button = gr.Button(label="Run")
|
119 |
|
120 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
with gr.Column():
|
122 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
123 |
+
ips = [input_image, prompt, input_control]
|
124 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
125 |
examples_list = [
|
126 |
[
|