Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ async def get_download_url(url):
|
|
116 |
"Content-Type": "application/json"
|
117 |
}
|
118 |
try:
|
119 |
-
response =
|
120 |
if response.status_code == 200:
|
121 |
result = response.json()
|
122 |
return result.get('download_url')
|
|
|
116 |
"Content-Type": "application/json"
|
117 |
}
|
118 |
try:
|
119 |
+
response = requests.post(api_url, json=data, headers=headers)
|
120 |
if response.status_code == 200:
|
121 |
result = response.json()
|
122 |
return result.get('download_url')
|