bibibi12345 commited on
Commit
f7a11cb
·
1 Parent(s): 823a78c

added wan

Browse files
Files changed (2) hide show
  1. static/script.js +4 -4
  2. templates/index.html +2 -2
static/script.js CHANGED
@@ -104,9 +104,9 @@ function handleModelChange() {
104
  value === 'fal-ai/bytedance/seedream/v4.5/text-to-image' ||
105
  value === 'fal-ai/hunyuan-image/v3/text-to-image';
106
  const isTextToVideo = value === 'fal-ai/bytedance/seedance/v1/pro/fast/text-to-video' ||
107
- value === 'fal-ai/wan/v2.6/text-to-video';
108
  const isImageToVideo = value === 'fal-ai/bytedance/seedance/v1/pro/fast/image-to-video' ||
109
- value === 'fal-ai/wan/v2.6/image-to-video';
110
 
111
  // Toggle prompt and input image area
112
  if (isTextToImage || isTextToVideo) {
@@ -631,9 +631,9 @@ async function generateEdit() {
631
  selectedModel === 'fal-ai/bytedance/seedream/v4.5/text-to-image' ||
632
  selectedModel === 'fal-ai/hunyuan-image/v3/text-to-image';
633
  const isTextToVideo = selectedModel === 'fal-ai/bytedance/seedance/v1/pro/fast/text-to-video' ||
634
- selectedModel === 'fal-ai/wan/v2.6/text-to-video';
635
  const isImageToVideo = selectedModel === 'fal-ai/bytedance/seedance/v1/pro/fast/image-to-video' ||
636
- selectedModel === 'fal-ai/wan/v2.6/image-to-video';
637
 
638
  // Determine if current model requires image inputs
639
  const needsImageInputs = (!isTextToImage && !isTextToVideo);
 
104
  value === 'fal-ai/bytedance/seedream/v4.5/text-to-image' ||
105
  value === 'fal-ai/hunyuan-image/v3/text-to-image';
106
  const isTextToVideo = value === 'fal-ai/bytedance/seedance/v1/pro/fast/text-to-video' ||
107
+ value === 'wan/v2.6/text-to-video';
108
  const isImageToVideo = value === 'fal-ai/bytedance/seedance/v1/pro/fast/image-to-video' ||
109
+ value === 'wan/v2.6/image-to-video';
110
 
111
  // Toggle prompt and input image area
112
  if (isTextToImage || isTextToVideo) {
 
631
  selectedModel === 'fal-ai/bytedance/seedream/v4.5/text-to-image' ||
632
  selectedModel === 'fal-ai/hunyuan-image/v3/text-to-image';
633
  const isTextToVideo = selectedModel === 'fal-ai/bytedance/seedance/v1/pro/fast/text-to-video' ||
634
+ selectedModel === 'wan/v2.6/text-to-video';
635
  const isImageToVideo = selectedModel === 'fal-ai/bytedance/seedance/v1/pro/fast/image-to-video' ||
636
+ selectedModel === 'wan/v2.6/image-to-video';
637
 
638
  // Determine if current model requires image inputs
639
  const needsImageInputs = (!isTextToImage && !isTextToVideo);
templates/index.html CHANGED
@@ -35,8 +35,8 @@
35
  <option value="fal-ai/hunyuan-image/v3/text-to-image">Text to Image (Hunyuan v3)</option>
36
  <option value="fal-ai/bytedance/seedance/v1/pro/fast/text-to-video">Text to Video (Seedance Fast)</option>
37
  <option value="fal-ai/bytedance/seedance/v1/pro/fast/image-to-video">Image to Video (Seedance Fast)</option>
38
- <option value="fal-ai/wan/v2.6/text-to-video">Text to Video (Wan v2.6)</option>
39
- <option value="fal-ai/wan/v2.6/image-to-video">Image to Video (Wan v2.6)</option>
40
  </select>
41
  <small class="help-text">Select the model for generation</small>
42
  </div>
 
35
  <option value="fal-ai/hunyuan-image/v3/text-to-image">Text to Image (Hunyuan v3)</option>
36
  <option value="fal-ai/bytedance/seedance/v1/pro/fast/text-to-video">Text to Video (Seedance Fast)</option>
37
  <option value="fal-ai/bytedance/seedance/v1/pro/fast/image-to-video">Image to Video (Seedance Fast)</option>
38
+ <option value="wan/v2.6/text-to-video">Text to Video (Wan v2.6)</option>
39
+ <option value="wan/v2.6/image-to-video">Image to Video (Wan v2.6)</option>
40
  </select>
41
  <small class="help-text">Select the model for generation</small>
42
  </div>