SCANSKY commited on
Commit
357cab9
·
verified ·
1 Parent(s): 3de510d

Update handler.py

Browse files
Files changed (1) hide show
  1. 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("text", "")
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)}")