multimodalart HF Staff commited on
Commit
87f8144
verified
1 Parent(s): 3691fc1

Default to full resolution, full quality examples

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -26,21 +26,21 @@ GPU_SIZE = os.environ.get("H3_GPU_SIZE", "xlarge")
26
  ON_SPACES = bool(os.environ.get("SPACE_ID"))
27
 
28
  CANVASES = {
29
- "960x544 路 16:9 fast (default)": (544, 960),
30
  "1024x576 路 16:9 fast": (576, 1024),
31
  "1152x640 路 16:9": (640, 1152),
32
  "1280x704 路 16:9": (704, 1280),
33
  "1344x768 路 16:9 full": (768, 1344),
34
- "544x960 路 9:16 fast": (960, 544),
35
  "640x1152 路 9:16": (1152, 640),
36
  "768x1344 路 9:16 full": (1344, 768),
37
- "544x544 路 1:1 fast": (544, 544),
38
  "768x768 路 1:1 full": (768, 768),
39
  "1024x768 路 4:3 full": (768, 1024),
40
  "768x1024 路 3:4 full": (1024, 768),
41
  "1536x672 路 21:9 full": (672, 1536),
42
  }
43
- DEFAULT_CANVAS = "960x544 路 16:9 fast (default)"
44
  FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5
45
  MAX_UI_DURATION = 14
46
 
@@ -380,8 +380,8 @@ with gr.Blocks(title="MiniMax-H3") as demo:
380
  gr.Examples(
381
  examples=[
382
  ["A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot", None, None, DEFAULT_CANVAS],
383
- ["A busy night market, neon signs reflecting in puddles, sizzling street food", None, None, "544x960 路 9:16 fast"],
384
- ["A cellist playing a slow melody in an empty concert hall", None, None, "544x544 路 1:1 fast"],
385
  ["The fox looks around, then trots deeper into the forest", "examples/first.png", None, DEFAULT_CANVAS],
386
  ["A slow seamless camera move from the first view to the last", "examples/first.png", "examples/last.png", DEFAULT_CANVAS],
387
  ],
 
26
  ON_SPACES = bool(os.environ.get("SPACE_ID"))
27
 
28
  CANVASES = {
29
+ "960x544 路 16:9 fast": (544, 960),
30
  "1024x576 路 16:9 fast": (576, 1024),
31
  "1152x640 路 16:9": (640, 1152),
32
  "1280x704 路 16:9": (704, 1280),
33
  "1344x768 路 16:9 full": (768, 1344),
34
+ "768x1344 路 9:16 full": (960, 544),
35
  "640x1152 路 9:16": (1152, 640),
36
  "768x1344 路 9:16 full": (1344, 768),
37
+ "768x768 路 1:1 full": (544, 544),
38
  "768x768 路 1:1 full": (768, 768),
39
  "1024x768 路 4:3 full": (768, 1024),
40
  "768x1024 路 3:4 full": (1024, 768),
41
  "1536x672 路 21:9 full": (672, 1536),
42
  }
43
+ DEFAULT_CANVAS = "1344x768 路 16:9 full"
44
  FPS, FRAMES_PER_CHUNK, LATENTS_PER_CHUNK = 24, 17, 5
45
  MAX_UI_DURATION = 14
46
 
 
380
  gr.Examples(
381
  examples=[
382
  ["A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot", None, None, DEFAULT_CANVAS],
383
+ ["A busy night market, neon signs reflecting in puddles, sizzling street food", None, None, "768x1344 路 9:16 full"],
384
+ ["A cellist playing a slow melody in an empty concert hall", None, None, "768x768 路 1:1 full"],
385
  ["The fox looks around, then trots deeper into the forest", "examples/first.png", None, DEFAULT_CANVAS],
386
  ["A slow seamless camera move from the first view to the last", "examples/first.png", "examples/last.png", DEFAULT_CANVAS],
387
  ],