openfree commited on
Commit
ff04ecb
ยท
verified ยท
1 Parent(s): ee252b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -270,11 +270,14 @@ def generate_video_from_image(image, prompt="", length=4.0, sound_generation="
270
  if not sound_prompt:
271
  sound_prompt = prompt if prompt else "ambient sound"
272
 
273
- # ๋น„๋””์˜ค์— ์‚ฌ์šด๋“œ ์ถ”๊ฐ€
274
  video_with_sound = video_to_audio(
275
- video_path,
276
- sound_prompt,
277
- sound_negative_prompt,
 
 
 
278
  duration=length
279
  )
280
  return video_with_sound
 
270
  if not sound_prompt:
271
  sound_prompt = prompt if prompt else "ambient sound"
272
 
273
+ # ๋น„๋””์˜ค์— ์‚ฌ์šด๋“œ ์ถ”๊ฐ€ - ๋ชจ๋“  ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ์ „๋‹ฌ
274
  video_with_sound = video_to_audio(
275
+ video_path=video_path,
276
+ prompt=sound_prompt,
277
+ negative_prompt=sound_negative_prompt,
278
+ seed=random.randint(0, 9999999),
279
+ num_steps=25,
280
+ cfg_strength=4.5,
281
  duration=length
282
  )
283
  return video_with_sound