Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
84 |
-
|
85 |
-
|
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:
|