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

refactor: Use second model in example if available, fallback to first

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -347,7 +347,7 @@ with gr.Blocks() as demo:
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
  [
 
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())[1] if len(MODELS) > 1 else list(MODELS.keys())[0],
351
  ],
352
  [
353
  [