victor HF staff commited on
Commit
3285ccb
·
1 Parent(s): f7357c0

feat: Add HuggingFace provider to all examples

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -320,6 +320,7 @@ with gr.Blocks() as demo:
320
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video.",
321
  0.7,
322
  0.1,
 
323
  ],
324
  [
325
  [
@@ -336,21 +337,24 @@ with gr.Blocks() as demo:
336
  "Generate an MP4 slideshow where each photo appears for 2 seconds, using the provided audio as soundtrack.",
337
  0.7,
338
  0.1,
 
339
  ],
340
  [
341
  ["./examples/waterfall-overlay.png", "./examples/waterfall.mp4"],
342
  "Add the overlay to the video.",
343
  0.7,
344
  0.1,
 
345
  ],
346
  [
347
  ["./examples/example.mp4"],
348
  "Make this video 10 times faster",
349
  0.7,
350
  0.1,
 
351
  ],
352
  ],
353
- inputs=[user_files, user_prompt, top_p, temperature],
354
  outputs=[generated_video, generated_command],
355
  fn=update,
356
  run_on_click=True,
 
320
  "Use the image as the background with a waveform visualization for the audio positioned in center of the video.",
321
  0.7,
322
  0.1,
323
+ "HuggingFace",
324
  ],
325
  [
326
  [
 
337
  "Generate an MP4 slideshow where each photo appears for 2 seconds, using the provided audio as soundtrack.",
338
  0.7,
339
  0.1,
340
+ "HuggingFace",
341
  ],
342
  [
343
  ["./examples/waterfall-overlay.png", "./examples/waterfall.mp4"],
344
  "Add the overlay to the video.",
345
  0.7,
346
  0.1,
347
+ "HuggingFace",
348
  ],
349
  [
350
  ["./examples/example.mp4"],
351
  "Make this video 10 times faster",
352
  0.7,
353
  0.1,
354
+ "HuggingFace",
355
  ],
356
  ],
357
+ inputs=[user_files, user_prompt, top_p, temperature, api_choice],
358
  outputs=[generated_video, generated_command],
359
  fn=update,
360
  run_on_click=True,