MrOvkill commited on
Commit
70a9dce
1 Parent(s): b95210f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,9 +27,9 @@ class MoonDream():
27
  def __call__(self, question, imgs):
28
  imn = 0
29
  for img in imgs:
30
- img = self.model.encode_image(img)
31
- res = self.model.answer_question(question=question, image_embeds=img, tokenizer=self.tokenizer)
32
- yield res
33
  return
34
 
35
  def _respond_one(question, img):
 
27
  def __call__(self, question, imgs):
28
  imn = 0
29
  for img in imgs:
30
+ img = self.model.encode_image(img)
31
+ res = self.model.answer_question(question=question, image_embeds=img, tokenizer=self.tokenizer)
32
+ yield res
33
  return
34
 
35
  def _respond_one(question, img):