dangkhoa99
commited on
Commit
•
e21069a
1
Parent(s):
85f9e9d
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -42,8 +42,8 @@ class EndpointHandler:
|
|
42 |
- "time": the time run predict
|
43 |
"""
|
44 |
inputs = data.pop("inputs", data)
|
45 |
-
context = inputs.context
|
46 |
-
question = inputs.question
|
47 |
|
48 |
prompt = f"""Answer the question based on the context below. If the question cannot be answered using the information provided answer with 'No answer'. Stop response if end.
|
49 |
>>TITLE<<: Flawless answer.
|
|
|
42 |
- "time": the time run predict
|
43 |
"""
|
44 |
inputs = data.pop("inputs", data)
|
45 |
+
context = inputs.pop("context", inputs)
|
46 |
+
question = inputs.pop("question", inputs)
|
47 |
|
48 |
prompt = f"""Answer the question based on the context below. If the question cannot be answered using the information provided answer with 'No answer'. Stop response if end.
|
49 |
>>TITLE<<: Flawless answer.
|