Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -81,7 +81,7 @@ class EndpointHandler():
|
|
| 81 |
# process input
|
| 82 |
inputs = data.pop("inputs", data)
|
| 83 |
# process input text
|
| 84 |
-
prediction = predict(inputs, self.model, self.tokenizer)
|
| 85 |
return prediction #{"generated_text": prediction}
|
| 86 |
|
| 87 |
|
|
|
|
| 81 |
# process input
|
| 82 |
inputs = data.pop("inputs", data)
|
| 83 |
# process input text
|
| 84 |
+
prediction = predict(inputs['text'], self.model, self.tokenizer)
|
| 85 |
return prediction #{"generated_text": prediction}
|
| 86 |
|
| 87 |
|