saa231 commited on
Commit
7dd46f0
·
verified ·
1 Parent(s): 7fa1011

Update project_model.py

Browse files
Files changed (1) hide show
  1. 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,