Itamarl commited on
Commit
bef6eeb
·
1 Parent(s): f7b16f7

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -34,4 +34,4 @@ class EndpointHandler():
34
 
35
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
36
  res = self.generate_text("Explain to me the difference between nuclear fission and fusion.")
37
- return res[0]["generated_text"]
 
34
 
35
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
36
  res = self.generate_text("Explain to me the difference between nuclear fission and fusion.")
37
+ return res