JPLTedCas commited on
Commit
869cf18
·
verified ·
1 Parent(s): ef04c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -188,8 +188,10 @@ def main():
188
  page_icon=":books:",
189
  )
190
 
191
- st.markdown("# Charla con TedCasBot")
192
- st.markdown("Este Bot será tu aliado a la hora de buscar información en múltiples documentos pdf. Déjanos ayudarte! 🙏🏾")
 
 
193
 
194
  st.write(css, unsafe_allow_html=True)
195
 
@@ -201,19 +203,19 @@ def main():
201
 
202
 
203
  st.header("Charla con un Bot 🤖🦾 que te ayudará a responder preguntas sobre tus pdfs:")
204
- user_question = st.text_input("Haz tu pregunta!:")
205
  if user_question:
206
  handle_userinput(user_question)
207
 
208
 
209
  with st.sidebar:
210
  add_logo()
211
- st.subheader("Tus documentos")
212
  pdf_docs = st.file_uploader(
213
- "Sube tus documentos y haz click en 'Procesar'", accept_multiple_files=True
214
  )
215
- if st.button("Procesar"):
216
- with st.spinner("Procesando"):
217
  # get pdf text
218
  raw_text = get_pdf_text(pdf_docs)
219
  pages = get_pdf_pages(pdf_docs)
 
188
  page_icon=":books:",
189
  )
190
 
191
+ #st.markdown("# Charla con TedCasBot")
192
+ #st.markdown("Este Bot será tu aliado a la hora de buscar información en múltiples documentos pdf. Déjanos ayudarte! 🙏🏾")
193
+ st.markdown("# Chat with TedCasBot")
194
+ st.markdown("This Bot is a powerful AI tool designed to simplify the process of extracting information from PDF documents")
195
 
196
  st.write(css, unsafe_allow_html=True)
197
 
 
203
 
204
 
205
  st.header("Charla con un Bot 🤖🦾 que te ayudará a responder preguntas sobre tus pdfs:")
206
+ user_question = st.text_input("Ask what you need!:")
207
  if user_question:
208
  handle_userinput(user_question)
209
 
210
 
211
  with st.sidebar:
212
  add_logo()
213
+ st.subheader("Your documents")
214
  pdf_docs = st.file_uploader(
215
+ "Upload your documents and ress 'Process'", accept_multiple_files=True
216
  )
217
+ if st.button("Process"):
218
+ with st.spinner("Processing"):
219
  # get pdf text
220
  raw_text = get_pdf_text(pdf_docs)
221
  pages = get_pdf_pages(pdf_docs)