Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -87,7 +87,7 @@ class EndpointHandler:
|
|
87 |
inputs = data.pop("inputs", data)
|
88 |
# process input text
|
89 |
prediction = self.predict(inputs)
|
90 |
-
return prediction
|
91 |
|
92 |
|
93 |
|
|
|
87 |
inputs = data.pop("inputs", data)
|
88 |
# process input text
|
89 |
prediction = self.predict(inputs)
|
90 |
+
return {"text":prediction}
|
91 |
|
92 |
|
93 |
|