Spaces:
Running
Running
refactor: Replace hardcoded model names with dynamic model selection
Browse files
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 |
-
|
| 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 |
-
|
| 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 |
-
|
| 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],
|