Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ if uploaded_file is not None:
|
|
25 |
st.write("Dataset Preview:", df.head())
|
26 |
|
27 |
# Assume 'text' column contains the document text; replace with actual column name
|
28 |
-
documents = df['
|
29 |
|
30 |
# Create embeddings for FAISS indexing
|
31 |
st.write("Indexing documents...")
|
|
|
25 |
st.write("Dataset Preview:", df.head())
|
26 |
|
27 |
# Assume 'text' column contains the document text; replace with actual column name
|
28 |
+
documents = df['Country Name'].tolist() if 'text' in df.columns else st.text_input("Specify the text column name:")
|
29 |
|
30 |
# Create embeddings for FAISS indexing
|
31 |
st.write("Indexing documents...")
|