Update TextGen/suno.py
Browse files- TextGen/suno.py +8 -1
TextGen/suno.py
CHANGED
@@ -42,7 +42,14 @@ def generate_whole_song(clip_id):
|
|
42 |
url = f"{base_url}/api/concat"
|
43 |
response = requests.post(url, json=payload)
|
44 |
return response.json()
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
if __name__ == '__main__':
|
48 |
data = generate_audio_by_prompt({
|
|
|
42 |
url = f"{base_url}/api/concat"
|
43 |
response = requests.post(url, json=payload)
|
44 |
return response.json()
|
45 |
+
|
46 |
+
def generate_lyrics(prompt):
|
47 |
+
payload = {"prompt": prompt}
|
48 |
+
url = f"{base_url}/api/generate_lyrics"
|
49 |
+
print(url)
|
50 |
+
response = requests.post(url, json=payload)
|
51 |
+
print(response)
|
52 |
+
return response.json()
|
53 |
|
54 |
if __name__ == '__main__':
|
55 |
data = generate_audio_by_prompt({
|