lalopenguin Claude Opus 4.6 commited on
Commit
f3e294e
·
1 Parent(s): 0b28d63

Fix model name to T2V-A14B and move theme to launch()

Browse files

- Correct model ID from Wan2.2-T2V-14B to Wan2.2-T2V-A14B (the actual HF repo)
- Move theme param from Blocks() to launch() for Gradio 6.0 compat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  HEADER = """
4
  # Wan 2.2 — Text to Video Generator
5
 
6
- Generate videos from text prompts using **Wan-AI/Wan2.2-T2V-14B**.
7
  Powered by the **fal-ai** inference provider. Sign in with your Hugging Face account to get started.
8
  """
9
 
@@ -15,11 +15,7 @@ EXAMPLES = [
15
  "A steaming cup of coffee on a wooden table with rain falling outside the window",
16
  ]
17
 
18
- with gr.Blocks(
19
- fill_height=True,
20
- theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="purple"),
21
- title="Wan 2.2 Text-to-Video",
22
- ) as demo:
23
 
24
  with gr.Sidebar():
25
  gr.Markdown("## Account")
@@ -30,13 +26,13 @@ with gr.Blocks(
30
  button = gr.LoginButton("Sign in")
31
  gr.Markdown("---")
32
  gr.Markdown(
33
- "**Model:** [Wan-AI/Wan2.2-T2V-14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-14B)\n\n"
34
  "**Provider:** fal-ai"
35
  )
36
 
37
  gr.Markdown(HEADER)
38
  gr.load(
39
- "models/Wan-AI/Wan2.2-T2V-14B",
40
  accept_token=button,
41
  provider="fal-ai",
42
  )
@@ -47,4 +43,4 @@ with gr.Blocks(
47
  interactive=False,
48
  )
49
 
50
- demo.launch()
 
3
  HEADER = """
4
  # Wan 2.2 — Text to Video Generator
5
 
6
+ Generate videos from text prompts using **Wan-AI/Wan2.2-T2V-A14B**.
7
  Powered by the **fal-ai** inference provider. Sign in with your Hugging Face account to get started.
8
  """
9
 
 
15
  "A steaming cup of coffee on a wooden table with rain falling outside the window",
16
  ]
17
 
18
+ with gr.Blocks(fill_height=True, title="Wan 2.2 Text-to-Video") as demo:
 
 
 
 
19
 
20
  with gr.Sidebar():
21
  gr.Markdown("## Account")
 
26
  button = gr.LoginButton("Sign in")
27
  gr.Markdown("---")
28
  gr.Markdown(
29
+ "**Model:** [Wan-AI/Wan2.2-T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B)\n\n"
30
  "**Provider:** fal-ai"
31
  )
32
 
33
  gr.Markdown(HEADER)
34
  gr.load(
35
+ "models/Wan-AI/Wan2.2-T2V-A14B",
36
  accept_token=button,
37
  provider="fal-ai",
38
  )
 
43
  interactive=False,
44
  )
45
 
46
+ demo.launch(theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="purple"))