Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -220,9 +220,12 @@ async def answer_question(request: QARequest):
|
|
| 220 |
|
| 221 |
response = client.post(
|
| 222 |
model=MODELS["qa"],
|
| 223 |
-
|
| 224 |
-
"
|
| 225 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|