pn23 commited on
Commit
38e3e1f
·
verified ·
1 Parent(s): 7f45966

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -52,6 +52,7 @@ def init_model(user_input):
52
 
53
  lyricInput = "Lyrics: " + lyrics + ". Based upon the following lyrics, please generate a title for this song. Desired Format: <title_case_without_genre>"
54
  response = model.generate_content(lyricInput)
 
55
 
56
  userInput = "Lyrics: " + lyrics + ". Split the following lyrics into ONLY 10 slices with each slice enhanced to describe a music video. You may slightlly alter the lyrics to best cater to this requirment. Each section is separated by a |. Use only 10 |'s. Delete ALL \n characters and Verse seperators as well. Desired Output: <|_separated>"
57
  response = model.generate_content(userInput)
@@ -62,7 +63,12 @@ def init_model(user_input):
62
  #call separate script for frame generation
63
  #gen_movie(whollySplit[:10])
64
 
 
 
 
 
65
  #call webscraping script
 
66
 
67
  return genre
68
 
 
52
 
53
  lyricInput = "Lyrics: " + lyrics + ". Based upon the following lyrics, please generate a title for this song. Desired Format: <title_case_without_genre>"
54
  response = model.generate_content(lyricInput)
55
+ title = response.text
56
 
57
  userInput = "Lyrics: " + lyrics + ". Split the following lyrics into ONLY 10 slices with each slice enhanced to describe a music video. You may slightlly alter the lyrics to best cater to this requirment. Each section is separated by a |. Use only 10 |'s. Delete ALL \n characters and Verse seperators as well. Desired Output: <|_separated>"
58
  response = model.generate_content(userInput)
 
63
  #call separate script for frame generation
64
  #gen_movie(whollySplit[:10])
65
 
66
+ #make API request
67
+
68
+ #TODO
69
+
70
  #call webscraping script
71
+ get_mp3("Samba Kickoff")
72
 
73
  return genre
74