SamiKLN commited on
Commit
1ea5059
·
verified ·
1 Parent(s): 9199f86

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -3
main.py CHANGED
@@ -220,9 +220,12 @@ async def answer_question(request: QARequest):
220
 
221
  response = client.post(
222
  model=MODELS["qa"],
223
- data={
224
- "question": request.question,
225
- "context": context
 
 
 
226
  }
227
  )
228
 
 
220
 
221
  response = client.post(
222
  model=MODELS["qa"],
223
+ json={
224
+ "inputs": {
225
+ "question": request.question,
226
+ "context": context
227
+ }
228
+
229
  }
230
  )
231