Update testing.py
Browse files- testing.py +5 -0
testing.py
CHANGED
|
@@ -3,6 +3,11 @@ import torch
|
|
| 3 |
|
| 4 |
class DeclarativePipeline(Pipeline):
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
def preprocess(self, inputs):
|
| 7 |
question = inputs.split("#")[0]
|
| 8 |
answer = inputs.split("#")[1]
|
|
|
|
| 3 |
|
| 4 |
class DeclarativePipeline(Pipeline):
|
| 5 |
|
| 6 |
+
def _sanitize_parameters(self, **kwargs):
|
| 7 |
+
preprocess_kwargs = {}
|
| 8 |
+
return preprocess_kwargs, {}, {}
|
| 9 |
+
|
| 10 |
+
|
| 11 |
def preprocess(self, inputs):
|
| 12 |
question = inputs.split("#")[0]
|
| 13 |
answer = inputs.split("#")[1]
|