Saqib commited on
Commit
2cd1847
1 Parent(s): c636ab9

Update modules/app.py

Browse files
Files changed (1) hide show
  1. modules/app.py +1 -1
modules/app.py CHANGED
@@ -117,7 +117,7 @@ async def get_audio(request: Request):
117
  out_file = os.path.join(AUDIO_DIR, unique_filename)
118
 
119
  # Call the modal API with the request parameters and download the output file
120
- data = await request.json()
121
  async with aiohttp.ClientSession() as session:
122
  async with session.get(f"{MODAL_BASE_URL}/get_audio", params=data) as response:
123
  if response.status != 200:
 
117
  out_file = os.path.join(AUDIO_DIR, unique_filename)
118
 
119
  # Call the modal API with the request parameters and download the output file
120
+ data = request.query_params
121
  async with aiohttp.ClientSession() as session:
122
  async with session.get(f"{MODAL_BASE_URL}/get_audio", params=data) as response:
123
  if response.status != 200: