MCS12 commited on
Commit
fb898da
·
verified ·
1 Parent(s): 2fbe6e1

Upload handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -75,7 +75,7 @@ class EndpointHandler:
75
 
76
  return [{"generated_text": prediction}]
77
 
78
- def apply_chat_template_for_presentation(tokenizer, content, tone="professional", length="medium"):
79
  """Format input using the model's chat template"""
80
 
81
  # Create messages following Llama 3's chat format
 
75
 
76
  return [{"generated_text": prediction}]
77
 
78
+ def apply_chat_template_for_presentation(self, tokenizer, content, tone="professional", length="medium"):
79
  """Format input using the model's chat template"""
80
 
81
  # Create messages following Llama 3's chat format