Update project_model.py
Browse files- project_model.py +3 -0
project_model.py
CHANGED
|
@@ -145,6 +145,9 @@ def generate_visual_context(pil_image: Image.Image) -> str:
|
|
| 145 |
# Main Multimodal Processing Function
|
| 146 |
# -------------------------------
|
| 147 |
|
|
|
|
|
|
|
|
|
|
| 148 |
def process_inputs(
|
| 149 |
session: VisualQAState,
|
| 150 |
image: Image.Image = None,
|
|
|
|
| 145 |
# Main Multimodal Processing Function
|
| 146 |
# -------------------------------
|
| 147 |
|
| 148 |
+
# Create a global session object to persist across follow-ups
|
| 149 |
+
session = VisualQAState()
|
| 150 |
+
|
| 151 |
def process_inputs(
|
| 152 |
session: VisualQAState,
|
| 153 |
image: Image.Image = None,
|