Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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]
|
104 |
-
prompt += "[INST]" + image_prompt + couple[0]
|
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:
|