Max5ive commited on
Commit
c7d058d
·
1 Parent(s): 658108c

return prediction in an array

Browse files
Files changed (1) hide show
  1. handler.py +5 -1
handler.py CHANGED
@@ -95,4 +95,8 @@ class EndpointHandler:
95
 
96
  prediction = {'generated_text': generated_text.split('>>END<<')[0].split('>>ANSWER<<:')[1].strip(), 'time': f"{(end-start):.2f} s"}
97
 
98
- return prediction
 
 
 
 
 
95
 
96
  prediction = {'generated_text': generated_text.split('>>END<<')[0].split('>>ANSWER<<:')[1].strip(), 'time': f"{(end-start):.2f} s"}
97
 
98
+ result = []
99
+ result.append(prediction)
100
+
101
+
102
+ return result