Chamodi123 commited on
Commit
3a9cd1d
·
verified ·
1 Parent(s): f097dc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -157,7 +157,7 @@ with col2:
157
  if st.button("🔮 Get Answer"):
158
  if user_question.strip() and uploaded_file is not None:
159
  # Extract the 3rd column from the dataframe
160
- context = df.iloc[:, 2].dropna().tolist() # Get the 3rd column as context (0-based index)
161
 
162
  # Generate embeddings for the context (3rd column rows) and the question
163
  context_embeddings = sentence_model.encode(context)
 
157
  if st.button("🔮 Get Answer"):
158
  if user_question.strip() and uploaded_file is not None:
159
  # Extract the 3rd column from the dataframe
160
+ context = df.iloc[:, 0].dropna().tolist() # Get the 3rd column as context (0-based index)
161
 
162
  # Generate embeddings for the context (3rd column rows) and the question
163
  context_embeddings = sentence_model.encode(context)