Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def get_pat_token():
|
|
57 |
print(rdata['data']['pat'])
|
58 |
return rdata['data']['pat']
|
59 |
|
60 |
-
def get_music(prompt, track_duration, gen_intensity, gen_mode):
|
61 |
|
62 |
r = httpx.post('https://api-b2b.mubert.com/v2/TTMRecordTrack',
|
63 |
json={
|
@@ -65,7 +65,7 @@ def get_music(prompt, track_duration, gen_intensity, gen_mode):
|
|
65 |
"params":
|
66 |
{
|
67 |
"text":prompt,
|
68 |
-
"pat":
|
69 |
"mode":"track",
|
70 |
"duration":track_duration,
|
71 |
"bitrate":"192"
|
|
|
57 |
print(rdata['data']['pat'])
|
58 |
return rdata['data']['pat']
|
59 |
|
60 |
+
def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
61 |
|
62 |
r = httpx.post('https://api-b2b.mubert.com/v2/TTMRecordTrack',
|
63 |
json={
|
|
|
65 |
"params":
|
66 |
{
|
67 |
"text":prompt,
|
68 |
+
"pat": pat,
|
69 |
"mode":"track",
|
70 |
"duration":track_duration,
|
71 |
"bitrate":"192"
|