luisresende13 commited on
Commit
080a129
1 Parent(s): c828564

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -26,5 +26,5 @@ class EndpointHandler():
26
 
27
  results = self.pipe(image, prompt=prompt, generate_kwargs={"max_new_tokens": max_new_tokens})
28
  result = results[0]
29
- # result['generated_text'] = result['generated_text'].replace(prompt.replace('<image>', ''), '')
30
  return result
 
26
 
27
  results = self.pipe(image, prompt=prompt, generate_kwargs={"max_new_tokens": max_new_tokens})
28
  result = results[0]
29
+ result['generated_text'] = result['generated_text'].replace(prompt.replace('<image>', '') + ' ', '')
30
  return result