multimodalart HF Staff commited on
Commit
2acaa72
路
verified 路
1 Parent(s): 6f8bb3a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -192,7 +192,11 @@ def conditioner():
192
  return Client(CONDITIONER_SPACE)
193
 
194
 
195
- CANVASES = {(768, 1344): "768x1344 路 9:16 full", (1344, 768): "1344x768 路 16:9 full"}
 
 
 
 
196
 
197
 
198
  def _remote_encode(prompt: str, media: list[str], kinds: list[str], height: int, width: int):
 
192
  return Client(CONDITIONER_SPACE)
193
 
194
 
195
+ # The conditioner's canvas table is label -> `(height, width)`, and its labels read `WxH`:
196
+ # `"1344x768 路 16:9 full" -> (768, 1344)`. So a `(height, width)` key must be spelled with the
197
+ # labels swapped relative to the key, or a landscape structure video is announced as portrait and
198
+ # the check below fires on every request.
199
+ CANVASES = {(768, 1344): "1344x768 路 16:9 full", (1344, 768): "768x1344 路 9:16 full"}
200
 
201
 
202
  def _remote_encode(prompt: str, media: list[str], kinds: list[str], height: int, width: int):