Jaykintecblic commited on
Commit
00fdfc5
1 Parent(s): 4754f2c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -63,6 +63,6 @@ class EndpointHandler:
63
  # print(generated_text)
64
  # return {"text": generated_text}
65
  # Format the output as an array of dictionaries with 'label' and 'score'
66
- output = [{"label": text, "score": 1.0} for text in generated_text]
67
 
68
  return output
 
63
  # print(generated_text)
64
  # return {"text": generated_text}
65
  # Format the output as an array of dictionaries with 'label' and 'score'
66
+ output = ["label": generated_text, "score": 1.0]
67
 
68
  return output