victor HF staff commited on
Commit
35c19ff
·
1 Parent(s): d617adf

refactor: Replace hardcoded model names with dynamic model selection

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -340,14 +340,14 @@ with gr.Blocks() as demo:
340
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video.",
341
  0.7,
342
  0.1,
343
- "Qwen/Qwen2.5-Coder-32B-Instruct",
344
  ],
345
  [
346
  ["./examples/ai_talk.wav", "./examples/bg-image.png"],
347
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video. Make sure the waveform has a max height of 250 pixels.",
348
  0.7,
349
  0.1,
350
- "deepseek-ai/DeepSeek-V3",
351
  ],
352
  [
353
  [
@@ -362,7 +362,7 @@ with gr.Blocks() as demo:
362
  "Create a 3x2 grid of the cat images with the audio as background music. Make the video duration match the audio duration.",
363
  0.7,
364
  0.1,
365
- "deepseek-ai/DeepSeek-V3",
366
  ],
367
  ],
368
  inputs=[user_files, user_prompt, top_p, temperature, model_choice],
 
340
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video.",
341
  0.7,
342
  0.1,
343
+ list(MODELS.keys())[0],
344
  ],
345
  [
346
  ["./examples/ai_talk.wav", "./examples/bg-image.png"],
347
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video. Make sure the waveform has a max height of 250 pixels.",
348
  0.7,
349
  0.1,
350
+ list(MODELS.keys())[0],
351
  ],
352
  [
353
  [
 
362
  "Create a 3x2 grid of the cat images with the audio as background music. Make the video duration match the audio duration.",
363
  0.7,
364
  0.1,
365
+ list(MODELS.keys())[0],
366
  ],
367
  ],
368
  inputs=[user_files, user_prompt, top_p, temperature, model_choice],