robinroy03 commited on
Commit
134d4df
1 Parent(s): b5685e6

trying to move json content type to None, to disable that check entirely (might be the bug cause)

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -47,7 +47,7 @@ async def llm_output(question: str) -> tuple[str, str]:
47
  async with session.post(URL_LLM + "/api/generate", json=obj) as response:
48
  if response.status == 500:
49
  return "Error 500"
50
- response_json = await response.json()
51
 
52
  return response_json['response'], response_json['references']
53
 
 
47
  async with session.post(URL_LLM + "/api/generate", json=obj) as response:
48
  if response.status == 500:
49
  return "Error 500"
50
+ response_json = await response.json(content_type=None)
51
 
52
  return response_json['response'], response_json['references']
53