Saqib
commited on
Update modules/app.py
Browse files- modules/app.py +1 -1
modules/app.py
CHANGED
@@ -143,7 +143,7 @@ async def get_youtube_audio(request: Request):
|
|
143 |
# Call the modal API with the request parameters and download the output file
|
144 |
data = request.query_params
|
145 |
async with aiohttp.ClientSession() as session:
|
146 |
-
async with session.get(f"{MODAL_BASE_URL}/
|
147 |
if response.status != 200:
|
148 |
raise HTTPException(status_code=500, detail="Failed to process request")
|
149 |
audio_data = await response.read()
|
|
|
143 |
# Call the modal API with the request parameters and download the output file
|
144 |
data = request.query_params
|
145 |
async with aiohttp.ClientSession() as session:
|
146 |
+
async with session.get(f"{MODAL_BASE_URL}/get_youtube_audio", params=data) as response:
|
147 |
if response.status != 200:
|
148 |
raise HTTPException(status_code=500, detail="Failed to process request")
|
149 |
audio_data = await response.read()
|