tecuts commited on
Commit
2e9ef6f
·
verified ·
1 Parent(s): bd1fc97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,6 +11,7 @@ import os
11
  import uuid
12
 
13
  # Constants
 
14
  BASE = 'https://www.qobuz.com/api.json/0.2/'
15
  TOKEN = 'yn-HVbPSnrnLazYtBbhTNCHpny-JcyE5LqrHkJnLiv047BJO2SxS_lmDVVN6UnqLv4EvA_5F-lHGY56hIgpfJg'
16
  APP_ID = '579939560'
@@ -82,7 +83,7 @@ async def fetch_data_for_url(request: Request):
82
 
83
  # Generate a URL for the converted ALAC file
84
  # You can use a URL or an endpoint that serves the file, e.g., your server file path or public URL
85
- alac_file_url = f'/files/{os.path.basename(alac_file_path)}' # Adjust this depending on your setup
86
 
87
  # Return the URL to the ALAC file as a JSON response
88
  return {"url": alac_file_url}
 
11
  import uuid
12
 
13
  # Constants
14
+ BASE_URL = 'https://tecuts-request.hf.space'
15
  BASE = 'https://www.qobuz.com/api.json/0.2/'
16
  TOKEN = 'yn-HVbPSnrnLazYtBbhTNCHpny-JcyE5LqrHkJnLiv047BJO2SxS_lmDVVN6UnqLv4EvA_5F-lHGY56hIgpfJg'
17
  APP_ID = '579939560'
 
83
 
84
  # Generate a URL for the converted ALAC file
85
  # You can use a URL or an endpoint that serves the file, e.g., your server file path or public URL
86
+ alac_file_url = f'{BASE_URL}/files/{os.path.basename(alac_file_path)}' # Adjust this depending on your setup
87
 
88
  # Return the URL to the ALAC file as a JSON response
89
  return {"url": alac_file_url}