Spaces:
Running on Zero
Running on Zero
Mirror the conditioner's canonical table, grouped by ratio
Browse files47 unmodified lines48495051525354555657585960616263646566676847 unmodified lines# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas# that half does not know is rejected there and surfaces as a failure here.CANVASES = {"960x544 路 16:9 fast": (544, 960),"1024x576 路 16:9 fast": (576, 1024),"1152x640 路 16:9": (640, 1152),"1280x704 路 16:9": (704, 1280),"1344x768 路 16:9 full": (768, 1344),"544x960 路 9:16 fast": (960, 544),"640x1152 路 9:16": (1152, 640),"768x1344 路 9:16 full": (1344, 768),"544x544 路 1:1 fast": (544, 544),"768x768 路 1:1 full": (768, 768),"768x576 路 4:3 fast": (576, 768),"576x768 路 3:4 fast": (768, 576),"1152x512 路 21:9 fast": (512, 1152),"1024x768 路 4:3 full": (768, 1024),"768x1024 路 3:4 full": (1024, 768),"1536x672 路 21:9 full": (672, 1536),}DEFAULT_CANVAS = "960x544 路 16:9 fast"47 unmodified lines484950515253545556575859606162636465666768697071727347 unmodified lines# Must stay identical to the conditioner's table: this Space forwards the *label* to the conditioner, so a canvas# that half does not know is rejected there and surfaces as a failure here.CANVASES = {# 16:9"960x544 路 16:9 fast": (544, 960),"1024x576 路 16:9 fast": (576, 1024),"1152x640 路 16:9": (640, 1152),"1280x704 路 16:9": (704, 1280),"1344x768 路 16:9 full": (768, 1344),# 9:16"544x960 路 9:16 fast": (960, 544),"640x1152 路 9:16": (1152, 640),"768x1344 路 9:16 full": (1344, 768),# 1:1"544x544 路 1:1 fast": (544, 544),"768x768 路 1:1 full": (768, 768),# 4:3 / 3:4"768x576 路 4:3 fast": (576, 768),"1024x768 路 4:3 full": (768, 1024),"576x768 路 3:4 fast": (768, 576),"768x1024 路 3:4 full": (1024, 768),# 21:9"1152x512 路 21:9 fast": (512, 1152),"1536x672 路 21:9 full": (672, 1536),}DEFAULT_CANVAS = "960x544 路 16:9 fast"
app.py+7-2