Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -15,7 +15,7 @@ class EndpointHandler:
|
|
| 15 |
"""
|
| 16 |
try:
|
| 17 |
# Directly work with the incoming data dictionary
|
| 18 |
-
text_input = data.get("
|
| 19 |
return text_input
|
| 20 |
except Exception as e:
|
| 21 |
raise ValueError(f"Error during preprocessing: {str(e)}")
|
|
|
|
| 15 |
"""
|
| 16 |
try:
|
| 17 |
# Directly work with the incoming data dictionary
|
| 18 |
+
text_input = data.get("inputs", "")
|
| 19 |
return text_input
|
| 20 |
except Exception as e:
|
| 21 |
raise ValueError(f"Error during preprocessing: {str(e)}")
|