Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def get_prompts(uploaded_image, track_duration, gen_intensity, gen_mode):
|
|
27 |
prompt = img_to_text(uploaded_image, 'fast', 4, fn_index=1)[0]
|
28 |
print(prompt)
|
29 |
#pat = get_pat_token()
|
30 |
-
music_result = get_music(
|
31 |
#music_result = generate_track_by_prompt(pat, prompt, track_duration, gen_intensity, gen_mode)
|
32 |
print(pat)
|
33 |
return music_result, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
@@ -57,7 +57,7 @@ def get_pat_token():
|
|
57 |
print(rdata)
|
58 |
return rdata
|
59 |
|
60 |
-
def get_music(
|
61 |
|
62 |
r = httpx.post('https://api-b2b.mubert.com/v2/GetServiceAccess',
|
63 |
json={
|
|
|
27 |
prompt = img_to_text(uploaded_image, 'fast', 4, fn_index=1)[0]
|
28 |
print(prompt)
|
29 |
#pat = get_pat_token()
|
30 |
+
music_result = get_music(prompt, track_duration, gen_intensity, gen_mode)
|
31 |
#music_result = generate_track_by_prompt(pat, prompt, track_duration, gen_intensity, gen_mode)
|
32 |
print(pat)
|
33 |
return music_result, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
|
|
57 |
print(rdata)
|
58 |
return rdata
|
59 |
|
60 |
+
def get_music(prompt, track_duration, gen_intensity, gen_mode):
|
61 |
|
62 |
r = httpx.post('https://api-b2b.mubert.com/v2/GetServiceAccess',
|
63 |
json={
|