Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
refactor: Use second model in example if available, fallback to first
Browse files
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 |
[
|