mandrx commited on
Commit
2c3222a
1 Parent(s): 2df31f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -171,21 +171,23 @@ def reset_results(*args):
171
 
172
  # Title
173
  st.write("# GPT3 and Langchain Demo")
174
- # st.markdown(
175
- # """
176
- # This demo takes its data from the documents uploaded to the Pinecone index through this app. \n
177
- # Ask any question from the uploaded documents and Pinecone will retrieve the context for answers and GPT3 will answer them using the retrieved context. \n
178
- # *Note: do not use keywords, but full-fledged questions.* The demo is not optimized to deal with keyword queries and might misunderstand you.
179
- # """,
180
- # unsafe_allow_html=True,
181
- # )
182
 
183
- # Sidebar
184
- # st.sidebar.header("Options")
185
- # st.sidebar.write("## File Upload:")
186
- # data_files = st.sidebar.file_uploader(
187
- # "upload", type=["pdf", "txt", "docx"], accept_multiple_files=True, label_visibility="hidden"
188
- # )
 
 
189
  ALL_FILES = []
190
  META_DATA = []
191
  for data_file in data_files:
 
171
 
172
  # Title
173
  st.write("# GPT3 and Langchain Demo")
174
+ st.markdown(
175
+ """
176
+ This demo takes its data from the documents uploaded to the Pinecone index through this app. \n
177
+ Ask any question from the uploaded documents and Pinecone will retrieve the context for answers and GPT3 will answer them using the retrieved context. \n
178
+ *Note: do not use keywords, but full-fledged questions.* The demo is not optimized to deal with keyword queries and might misunderstand you.
179
+ """,
180
+ unsafe_allow_html=True,
181
+ )
182
 
183
+ Sidebar
184
+ st.sidebar.header("Options")
185
+ st.sidebar.write("## File Upload:")
186
+ data_files = st.sidebar.file_uploader(
187
+ "upload", type=["pdf", "txt", "docx"], accept_multiple_files=True, label_visibility="hidden"
188
+ )
189
+
190
+ print("data_files",data_files)
191
  ALL_FILES = []
192
  META_DATA = []
193
  for data_file in data_files: