Update app.py
Browse files
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
|