Adityadn commited on
Commit
d2237c6
·
verified ·
1 Parent(s): 92f3382

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -79,10 +79,10 @@ import json
79
  # Function to recognize audio from URL or uploaded file
80
  def recognize_audio(choice, url, file):
81
  api_url = os.getenv("API_URL", "https://api.audd.io/")
82
-
83
- # Memuat PARAMS sebagai dictionary (bukan string JSON)
84
- params = json.loads(os.getenv("PARAMS", "{}"))
85
- params['api_token'] = os.getenv("API_TOKEN", "your_api_token_here")
86
 
87
  if choice == "URL":
88
  if not url:
 
79
  # Function to recognize audio from URL or uploaded file
80
  def recognize_audio(choice, url, file):
81
  api_url = os.getenv("API_URL", "https://api.audd.io/")
82
+ params = {
83
+ "return": "apple_music,spotify"
84
+ "api_token": os.getenv("API_TOKEN", "your_api_token_here")
85
+ }
86
 
87
  if choice == "URL":
88
  if not url: