Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -26,23 +26,23 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
26 |
examples = json.loads(open("examples.json").read())
|
27 |
|
28 |
aspect_ratios = {
|
29 |
-
"1080, aspect 1:1": (1080, 1080),
|
30 |
-
"1080, aspect 16:9": (1920, 1080),
|
31 |
-
"1080, aspect 9:16": (1080, 1920),
|
32 |
-
"1080, aspect 4:3": (1440, 1080),
|
33 |
-
"1080, aspect 3:4": (1080, 1440),
|
34 |
-
|
35 |
-
"720, aspect 1:1": (720, 720),
|
36 |
-
"720, aspect 16:9": (1280, 720),
|
37 |
-
"720, aspect 9:16": (720, 1280),
|
38 |
-
"720, aspect 4:3": (960, 720),
|
39 |
-
"720, aspect 3:4": (720, 960),
|
40 |
-
|
41 |
-
"480, aspect 1:1": (480, 480),
|
42 |
-
"480, aspect 16:9": (854, 480),
|
43 |
-
"480, aspect 9:16": (480, 854),
|
44 |
-
"480, aspect 4:3": (640, 480),
|
45 |
-
"480, aspect 3:4": (480, 640),
|
46 |
}
|
47 |
|
48 |
|
@@ -168,8 +168,6 @@ with gr.Blocks(css=css) as demo:
|
|
168 |
|
169 |
with gr.Row():
|
170 |
prompt.render()
|
171 |
-
|
172 |
-
with gr.Row():
|
173 |
run_button = gr.Button("Generate", scale=0, variant="primary")
|
174 |
|
175 |
result.render()
|
|
|
26 |
examples = json.loads(open("examples.json").read())
|
27 |
|
28 |
aspect_ratios = {
|
29 |
+
"FHD 1080, aspect 1:1": (1080, 1080),
|
30 |
+
"FHD 1080, aspect 16:9": (1920, 1080),
|
31 |
+
"FHD 1080, aspect 9:16": (1080, 1920),
|
32 |
+
"FHD 1080, aspect 4:3": (1440, 1080),
|
33 |
+
"FHD 1080, aspect 3:4": (1080, 1440),
|
34 |
+
|
35 |
+
"HD 720, aspect 1:1": (720, 720),
|
36 |
+
"HD 720, aspect 16:9": (1280, 720),
|
37 |
+
"HD 720, aspect 9:16": (720, 1280),
|
38 |
+
"HD 720, aspect 4:3": (960, 720),
|
39 |
+
"HD 720, aspect 3:4": (720, 960),
|
40 |
+
|
41 |
+
"SD 480, aspect 1:1": (480, 480),
|
42 |
+
"SD 480, aspect 16:9": (854, 480),
|
43 |
+
"SD 480, aspect 9:16": (480, 854),
|
44 |
+
"SD 480, aspect 4:3": (640, 480),
|
45 |
+
"SD 480, aspect 3:4": (480, 640),
|
46 |
}
|
47 |
|
48 |
|
|
|
168 |
|
169 |
with gr.Row():
|
170 |
prompt.render()
|
|
|
|
|
171 |
run_button = gr.Button("Generate", scale=0, variant="primary")
|
172 |
|
173 |
result.render()
|