Spaces:
Running
Running
Update app.py
Browse files
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[:,
|
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)
|