fffiloni commited on
Commit
19ea5f7
โ€ข
1 Parent(s): 5696182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(pat, 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,7 +57,7 @@ def get_pat_token():
57
  print(rdata)
58
  return rdata
59
 
60
- def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
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={