Commit
•
ab91894
1
Parent(s):
c7b5560
Upload moondream.py
Browse files- 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
|
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={
|