Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def translate_language(text_prompts):
|
|
73 |
|
74 |
def get_result(text_prompts, style_indx):
|
75 |
style = style_list[style_indx]
|
76 |
-
prompt =
|
77 |
|
78 |
|
79 |
image_output = pipe(prompt).images[0]
|
@@ -105,8 +105,8 @@ def get_music(prompt):
|
|
105 |
|
106 |
|
107 |
def merge_video(music, img_list):
|
108 |
-
|
109 |
-
|
110 |
print('wav audio converted to mp3 audio' )
|
111 |
print('now getting duration of this mp3 audio' )
|
112 |
#getting audio clip's duration
|
|
|
73 |
|
74 |
def get_result(text_prompts, style_indx):
|
75 |
style = style_list[style_indx]
|
76 |
+
prompt = style + "," + text_prompts
|
77 |
|
78 |
|
79 |
image_output = pipe(prompt).images[0]
|
|
|
105 |
|
106 |
|
107 |
def merge_video(music, img_list):
|
108 |
+
#Convert to mp3
|
109 |
+
music.export("audio.mp3", format="mp3")
|
110 |
print('wav audio converted to mp3 audio' )
|
111 |
print('now getting duration of this mp3 audio' )
|
112 |
#getting audio clip's duration
|