Update project_model.py
Browse files- project_model.py +1 -1
project_model.py
CHANGED
|
@@ -211,7 +211,7 @@ def process_inputs(
|
|
| 211 |
gemma_input = [{
|
| 212 |
"role": "user",
|
| 213 |
"content": [
|
| 214 |
-
{"type": "
|
| 215 |
{"type": "text", "text": question + " " + session.visual_context} # Question and visual context combined as text
|
| 216 |
]
|
| 217 |
}]
|
|
|
|
| 211 |
gemma_input = [{
|
| 212 |
"role": "user",
|
| 213 |
"content": [
|
| 214 |
+
{"type": "images", "images": session.annotated_image}, # Image context
|
| 215 |
{"type": "text", "text": question + " " + session.visual_context} # Question and visual context combined as text
|
| 216 |
]
|
| 217 |
}]
|