prasadnu commited on
Commit
bd73012
·
1 Parent(s): 95725c6

rerank model

Browse files
Files changed (1) hide show
  1. RAG/colpali.py +9 -0
RAG/colpali.py CHANGED
@@ -65,6 +65,15 @@ runtime = boto3.client("sagemaker-runtime",aws_access_key_id=st.secrets['user_ac
65
 
66
  # Prepare your payload (e.g., text-only input)
67
 
 
 
 
 
 
 
 
 
 
68
 
69
  @st.cache_resource
70
  def call_nova(
 
65
 
66
  # Prepare your payload (e.g., text-only input)
67
 
68
+ if 'top_img' not in st.session_state:
69
+ st.session_state['top_img'] = ""
70
+ if 'query_token_vectors' not in st.session_state:
71
+ st.session_state['query_token_vectors'] = ""
72
+ if 'query_tokens' not in st.session_state:
73
+ st.session_state['query_tokens'] = ""
74
+
75
+
76
+
77
 
78
  @st.cache_resource
79
  def call_nova(