Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -12,7 +12,7 @@ class EndpointHandler:
|
|
12 |
"""
|
13 |
|
14 |
# Get inputs
|
15 |
-
text_input = data.pop("
|
16 |
|
17 |
# Perform regular model task
|
18 |
result = self.nlp(text_input)
|
|
|
12 |
"""
|
13 |
|
14 |
# Get inputs
|
15 |
+
text_input = data.pop("inputs", "")
|
16 |
|
17 |
# Perform regular model task
|
18 |
result = self.nlp(text_input)
|