This repository is a submission for Google Cloud - VertexAI hackathon conducted by lablab.ai. The repository contains the code and other data related to Pdf2Bot web-app.
Pdf2Bot is a web-app that creates a chatbot on the fly from the document uploaded by the user and will be able to answer any kind of query related to the file. The thus built bot also outputs the answer in one of the seven widely accepted accents of English, world-wide.
- Download the repository as a compressed directory, then extract it or using the git clone command.
- Open the terminal.
- Navigate to the directory where extracted repository is stored.
- Run the following command to install required python libraries
pip install -r requirements.txt
- Use the below command to run the app
streamlit run app.py
- In the sidebar of the web-app click on upload, browse through the local file system and upload the file (As PDF)
- After uploading the file click on Done Uploading button.
- Wait until
appears.
Uploaded Loaded Splitting done Vectorising done - Enter the query. Click on Submit button
- The answer as text and audio will be displayed by the app
- Python
- Streamlit
- Langchain
- VertexAI
- GTTS
- Google Cloud
Please upload service_account.json and specify its path in app.py to use it
