Kushwanth Chowday Kandala commited on
Commit
26b5cd4
1 Parent(s): 64523d8

allow only pdf files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ for i in st.session_state["chat_history"]:
134
  # pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
135
  # st.text(pinecone)
136
 
137
- uploaded_files = st.file_uploader("Choose a CSV file", accept_multiple_files=True)
138
  for uploaded_file in uploaded_files:
139
  bytes_data = uploaded_file.read()
140
  st.write("filename:", uploaded_file.name)
 
134
  # pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
135
  # st.text(pinecone)
136
 
137
+ uploaded_files = st.file_uploader('Choose your .pdf file', type="pdf", accept_multiple_files=True)
138
  for uploaded_file in uploaded_files:
139
  bytes_data = uploaded_file.read()
140
  st.write("filename:", uploaded_file.name)