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

sidebar with file uploader

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -133,9 +133,9 @@ for i in st.session_state["chat_history"]:
133
  # from pinecone import Index, GRPCIndex
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)
141
- st.write(bytes_data)
 
133
  # from pinecone import Index, GRPCIndex
134
  # pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
135
  # st.text(pinecone)
136
+ with st.sidebar:
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)
141
+ st.write(bytes_data)