fffiloni commited on
Commit
30800e2
โ€ข
1 Parent(s): 09e56af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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": "aW1ndG9tdXNpYy4xNzA4Nzg5MS40ZGIxNGM0YjM2NDY4ZDM2OWQ3ZjQ4NTg1NmNiNjg0N2NmYjJmMDZhLjEuMw",
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"