Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ description = "Create images of a given character in different poses • running
|
|
52 |
css="""
|
53 |
#col-container{
|
54 |
margin: 0 auto;
|
55 |
-
max-width:
|
56 |
text-align: left;
|
57 |
}
|
58 |
"""
|
@@ -76,36 +76,43 @@ with gr.Blocks(css=css) as app:
|
|
76 |
submit_btn = gr.Button("Submit")
|
77 |
|
78 |
with gr.Accordion(label="Advanced Settings", open=False):
|
|
|
79 |
negative_prompt = gr.Textbox(
|
80 |
label="Negative Prompt", info='''Things you do not want to see in your image''',
|
81 |
value="text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry"
|
82 |
)
|
83 |
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
label="Seed", info='''Set a seed for reproducibility. Random by default.''', value=None
|
108 |
-
)
|
109 |
|
110 |
with gr.Column(scale=2):
|
111 |
consistent_results = gr.Gallery(label="Consistent Results")
|
|
|
52 |
css="""
|
53 |
#col-container{
|
54 |
margin: 0 auto;
|
55 |
+
max-width: 1400px;
|
56 |
text-align: left;
|
57 |
}
|
58 |
"""
|
|
|
76 |
submit_btn = gr.Button("Submit")
|
77 |
|
78 |
with gr.Accordion(label="Advanced Settings", open=False):
|
79 |
+
|
80 |
negative_prompt = gr.Textbox(
|
81 |
label="Negative Prompt", info='''Things you do not want to see in your image''',
|
82 |
value="text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry"
|
83 |
)
|
84 |
|
85 |
+
with gr.Row():
|
86 |
+
|
87 |
+
number_of_outputs = gr.Slider(
|
88 |
+
label="Number Of Outputs", info='''The number of images to generate.''', value=2,
|
89 |
+
minimum=1, maximum=4, step=1,
|
90 |
+
)
|
91 |
+
|
92 |
+
number_of_images_per_pose = gr.Slider(
|
93 |
+
label="Number Of Images Per Pose", info='''The number of images to generate for each pose.''', value=1,
|
94 |
+
minimum=1, maximum=4, step=1,
|
95 |
+
)
|
96 |
+
|
97 |
+
with gr.Row():
|
98 |
+
|
99 |
+
randomise_poses = gr.Checkbox(
|
100 |
+
label="Randomise Poses", info='''Randomise the poses used.''', value=True
|
101 |
+
)
|
102 |
+
|
103 |
+
output_format = gr.Dropdown(
|
104 |
+
choices=['webp', 'jpg', 'png'], label="output_format", info='''Format of the output images''', value="webp"
|
105 |
+
)
|
106 |
|
107 |
+
with gr.Row():
|
108 |
+
|
109 |
+
output_quality = gr.Number(
|
110 |
+
label="Output Quality", info='''Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.''', value=80
|
111 |
+
)
|
112 |
+
|
113 |
+
seed = gr.Number(
|
114 |
+
label="Seed", info='''Set a seed for reproducibility. Random by default.''', value=None
|
115 |
+
)
|
|
|
|
|
116 |
|
117 |
with gr.Column(scale=2):
|
118 |
consistent_results = gr.Gallery(label="Consistent Results")
|