mahynski commited on
Commit
eb70b82
·
1 Parent(s): b965179
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -97,7 +97,7 @@ with st.sidebar:
97
 
98
  uploaded_file = st.file_uploader(
99
  "Choose a PDF file to upload",
100
- type=['pdf'],
101
  accept_multiple_files=False
102
  )
103
 
@@ -120,18 +120,27 @@ with st.sidebar:
120
  col1, col2 = st.columns(2)
121
 
122
  with col1:
123
- pass
 
 
 
 
 
 
 
 
 
124
 
125
  with col2:
126
  tab1, tab2 = st.tabs(["Uploaded File", "Parsed File",])
127
 
128
  with tab1:
129
- st.header('This is the raw file you uploaded.')
130
  if uploaded_file is not None: # Display the pdf
131
  bytes_data = uploaded_file.getvalue()
132
  pdf_viewer(input=bytes_data, width=700)
133
 
134
  with tab2:
135
- st.header('This is the parsed version of the file.')
136
  if parsed_document is not None: # Showed the raw parsing result
137
  st.write(parsed_document)
 
97
 
98
  uploaded_file = st.file_uploader(
99
  "Choose a PDF file to upload",
100
+ # type=['pdf'],
101
  accept_multiple_files=False
102
  )
103
 
 
120
  col1, col2 = st.columns(2)
121
 
122
  with col1:
123
+ st.markdown(
124
+ """
125
+ # Instructions
126
+
127
+ 1. Obtain a [token](https://cloud.llamaindex.ai/api-key) (or API Key) from LlamaParse to parse your document.
128
+ 2. Obtain a similar token from your preferred LLM provider.
129
+ 3. Make selections at the left and upload a document to use a context.
130
+ 4. Begin asking questions below!
131
+ """
132
+ )
133
 
134
  with col2:
135
  tab1, tab2 = st.tabs(["Uploaded File", "Parsed File",])
136
 
137
  with tab1:
138
+ # st.header('This is the raw file you uploaded.')
139
  if uploaded_file is not None: # Display the pdf
140
  bytes_data = uploaded_file.getvalue()
141
  pdf_viewer(input=bytes_data, width=700)
142
 
143
  with tab2:
144
+ # st.header('This is the parsed version of the file.')
145
  if parsed_document is not None: # Showed the raw parsing result
146
  st.write(parsed_document)