pandora-s commited on
Commit
2a9695b
·
verified ·
1 Parent(s): 28ca7c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,8 +100,8 @@ def run_inference(message, history, model_picked, context_size, max_output):
100
  image_prompt = ""
101
  for i in range(len(couple[0])):
102
  image_prompt += "{{IMAGE_" + str(len(images_embeddings)-len(couple[0])+i+1) + "}}"
103
- elif couple[0][1]:
104
- prompt += "[INST]" + image_prompt + couple[0][1] + "[/INST]"
105
  prompt += couple[1] + "</s>"
106
 
107
  if type(message) is dict:
 
100
  image_prompt = ""
101
  for i in range(len(couple[0])):
102
  image_prompt += "{{IMAGE_" + str(len(images_embeddings)-len(couple[0])+i+1) + "}}"
103
+ elif couple[0]:
104
+ prompt += "[INST]" + image_prompt + couple[0] + "[/INST]"
105
  prompt += couple[1] + "</s>"
106
 
107
  if type(message) is dict: