hanzla commited on
Commit
104d077
1 Parent(s): 771a749

zero embeddings

Browse files
Files changed (1) hide show
  1. app_v2.py +2 -1
app_v2.py CHANGED
@@ -52,7 +52,8 @@ def bot(history):
52
  except IOError:
53
  response = "Failed to open image. Please check the image path or file permissions."
54
  else:
55
- response = "Please provide an Image to chat."
 
56
 
57
  history[-1][1] = ""
58
  for character in response:
 
52
  except IOError:
53
  response = "Failed to open image. Please check the image path or file permissions."
54
  else:
55
+ image_embeds = torch.zeros(1, 729, 2048)
56
+ response = moondream.answer_question(image_embeds, last_message, tokenizer)
57
 
58
  history[-1][1] = ""
59
  for character in response: