Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ import json
|
|
78 |
|
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")
|
|
|
78 |
|
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/").strip('"')
|
82 |
params = {
|
83 |
"return": "apple_music,spotify",
|
84 |
"api_token": os.getenv("API_TOKEN", "your_api_token_here")
|