Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,8 +53,14 @@ def init_model(user_input):
|
|
| 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 |
#Add code for list of frame
|
| 57 |
#call separate script for frame generation
|
|
|
|
| 58 |
|
| 59 |
return genre
|
| 60 |
|
|
|
|
| 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)
|
| 58 |
+
sepTen = response.text
|
| 59 |
+
whollySplit = sepTen.split("|")
|
| 60 |
+
|
| 61 |
#Add code for list of frame
|
| 62 |
#call separate script for frame generation
|
| 63 |
+
gen_movie(whollySplit[:10])
|
| 64 |
|
| 65 |
return genre
|
| 66 |
|