Spaces:
Running on Zero
Running on Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -192,7 +192,11 @@ def conditioner():
|
|
| 192 |
return Client(CONDITIONER_SPACE)
|
| 193 |
|
| 194 |
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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):
|