Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def get_pat_token():
|
|
54 |
def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
55 |
|
56 |
if len(prompt) > 200:
|
57 |
-
|
58 |
|
59 |
r = httpx.post('https://api-b2b.mubert.com/v2/TTMRecordTrack',
|
60 |
json={
|
|
|
54 |
def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
55 |
|
56 |
if len(prompt) > 200:
|
57 |
+
prompt = prompt[:200]
|
58 |
|
59 |
r = httpx.post('https://api-b2b.mubert.com/v2/TTMRecordTrack',
|
60 |
json={
|