ThomasSimonini HF staff commited on
Commit
ab91894
1 Parent(s): c7b5560

Upload moondream.py

Browse files
Files changed (1) hide show
  1. moondream.py +1 -1
moondream.py CHANGED
@@ -266,7 +266,7 @@ class Moondream(PreTrainedModel):
266
 
267
  with torch.no_grad():
268
  inputs_embeds = self.input_embeds(prompt, image_embeds, tokenizer)
269
- streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
270
 
271
  # Start generation in a separate thread
272
  thread = Thread(target=self.text_model.generate, kwargs={
 
266
 
267
  with torch.no_grad():
268
  inputs_embeds = self.input_embeds(prompt, image_embeds, tokenizer)
269
+ streamer = TextIteratorStreamer(tokenizer)
270
 
271
  # Start generation in a separate thread
272
  thread = Thread(target=self.text_model.generate, kwargs={