Chandranshu Jain commited on
Commit
798ece9
1 Parent(s): ef57dfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,7 +15,7 @@ from langchain_cohere import CohereEmbeddings
15
  st.set_page_config(page_title="Document Genie", layout="wide")
16
 
17
  st.markdown("""
18
- ## Document Genie: Get instant insights from your Documents
19
 
20
  This chatbot is built using the Retrieval-Augmented Generation (RAG) framework, leveraging Google's Generative AI model Gemini-PRO. It processes uploaded PDF documents by breaking them down into manageable chunks, creates a searchable vector store, and generates accurate answers to user queries. This advanced approach ensures high-quality, contextually relevant responses for an efficient and effective user experience.
21
 
@@ -23,9 +23,9 @@ This chatbot is built using the Retrieval-Augmented Generation (RAG) framework,
23
 
24
  Follow these simple steps to interact with the chatbot:
25
 
26
- 1. **Upload Your Documents**: The system accepts a PDF file at one time, analyzing the content to provide comprehensive insights.
27
 
28
- 2. **Ask a Question**: After processing the documents, ask any question related to the content of your uploaded documents for a precise answer.
29
  """)
30
 
31
  #def get_pdf(pdf_docs):
@@ -95,7 +95,7 @@ def main():
95
  st.header("Chat with your pdf💁")
96
  st.title("Menu:")
97
  pdf_docs = st.file_uploader("Upload your PDF File and Click on the Submit & Process Button", accept_multiple_files=False, key="pdf_uploader")
98
- query = st.text_input("Ask a Question from the PDF Files", key="query")
99
  if st.button("Submit & Process", key="process_button"):
100
  with st.spinner("Processing..."):
101
  raw_text = get_pdf(pdf_docs)
 
15
  st.set_page_config(page_title="Document Genie", layout="wide")
16
 
17
  st.markdown("""
18
+ ## PDFChat: Get instant insights from your PDF
19
 
20
  This chatbot is built using the Retrieval-Augmented Generation (RAG) framework, leveraging Google's Generative AI model Gemini-PRO. It processes uploaded PDF documents by breaking them down into manageable chunks, creates a searchable vector store, and generates accurate answers to user queries. This advanced approach ensures high-quality, contextually relevant responses for an efficient and effective user experience.
21
 
 
23
 
24
  Follow these simple steps to interact with the chatbot:
25
 
26
+ 1. **Upload Your Document**: The system accepts a PDF file at one time, analyzing the content to provide comprehensive insights.
27
 
28
+ 2. **Ask a Question**: After processing the document, ask any question related to the content of your uploaded document for a precise answer.
29
  """)
30
 
31
  #def get_pdf(pdf_docs):
 
95
  st.header("Chat with your pdf💁")
96
  st.title("Menu:")
97
  pdf_docs = st.file_uploader("Upload your PDF File and Click on the Submit & Process Button", accept_multiple_files=False, key="pdf_uploader")
98
+ query = st.text_input("Ask a Question from the PDF File", key="query")
99
  if st.button("Submit & Process", key="process_button"):
100
  with st.spinner("Processing..."):
101
  raw_text = get_pdf(pdf_docs)