Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,9 @@ class MoonDream():
|
|
27 |
def __call__(self, question, imgs):
|
28 |
imn = 0
|
29 |
for img in imgs:
|
30 |
-
|
31 |
-
|
32 |
-
|
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):
|