DGSpitzer commited on
Commit
be0db42
1 Parent(s): a421dcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = text_prompts + "," + style
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
- #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
 
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