Jaykintecblic
commited on
Commit
•
4754f2c
1
Parent(s):
43a59c2
Update handler.py
Browse files- 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
|
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": text, "score": 1.0} for text in generated_text]
|
67 |
|
68 |
return output
|