KeshavRa commited on
Commit
e697bbd
·
verified ·
1 Parent(s): 0f0f2e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -128,6 +128,7 @@ if 'success' not in st.session_state:
128
 
129
  if selected_app == "1) Scrape PDFs":
130
  st.markdown("### On this page, you'll scape the information that you want your chatbot to know")
 
131
 
132
  st.write("1. Go to your organizations webpage")
133
  image = Image.open('Example1.png')
@@ -179,15 +180,23 @@ if selected_app == "2) Create CSVs":
179
 
180
  else:
181
  st.markdown("### On this page, you'll convert your text into potential questions that your chatbot may be asked and their corresponding answers.")
 
182
 
183
  st.write("1. Upload your PDFs here")
184
  with st.expander("Explain"):
185
  st.write("You can upload more than one PDF at a time, but don't do too many at once.")
186
- uploaded_files = st.file_uploader("", type="pdf", accept_multiple_files=True)
187
  st.divider()
188
-
189
- question_protocol = st.text_input("Provide instructions for how questions should be generated", "Write a question based on the text")
190
- answer_protocol = st.text_input("Provide instructions for how answers should be generated", "Write an answer based on the text")
 
 
 
 
 
 
 
191
 
192
  sentence_chunks = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3)
193
 
 
128
 
129
  if selected_app == "1) Scrape PDFs":
130
  st.markdown("### On this page, you'll scape the information that you want your chatbot to know")
131
+ st.divider()
132
 
133
  st.write("1. Go to your organizations webpage")
134
  image = Image.open('Example1.png')
 
180
 
181
  else:
182
  st.markdown("### On this page, you'll convert your text into potential questions that your chatbot may be asked and their corresponding answers.")
183
+ st.divider()
184
 
185
  st.write("1. Upload your PDFs here")
186
  with st.expander("Explain"):
187
  st.write("You can upload more than one PDF at a time, but don't do too many at once.")
188
+ uploaded_files = st.file_uploader(type="pdf", accept_multiple_files=True)
189
  st.divider()
190
+
191
+ st.write("2. Provide instructions for how questions should be generated.")
192
+ with st.expander("Explain"):
193
+ st.write("You can upload more than one PDF at a time, but don't do too many at once.")
194
+ question_protocol = st.text_input("", "Write a question based on the text")
195
+
196
+ st.write("3. Provide instructions for how answers should be generated")
197
+ with st.expander("Explain"):
198
+ st.write("You can upload more than one PDF at a time, but don't do too many at once.")
199
+ answer_protocol = st.text_input("", "Write an answer based on the text")
200
 
201
  sentence_chunks = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3)
202