Giter Site home page Giter Site logo

shubhranpara / chatpdf Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 200 KB

This repository contains one of my cool project which I have created during my college's MINeD hack-a-thon.

License: MIT License

Python 100.00%
chatbot docx-files faiss-vector-database flan-t5 gemma-2b-it huggingface-transformers pdf-converter pdf-document langchain qa

chatpdf's Introduction

Chat with PDF

This is a fun Python project that allows you to chat with a chatbot about the PDF you uploaded. and generate a PDF transcript of the conversation. The project is built using Python and Streamlit framework.

Installation

To run this project, please follow the steps below:

  1. Create and activate a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate
  1. Install the dependencies from the requirements.txt file:
pip install -r requirements.txt
  1. Add your HUGGINGFACEHUB_API_TOKEN in .env file and check the file name must be .env otherwise rename the file to .env. If you don't have a huggingface api token then generate one from settings. And also remember to get access of the required nlp model which you are using.

Running the Project

  1. Once you have installed the required dependencies, you can run the project using Streamlit. Streamlit provides an easy way to create interactive web applications in Python.

To start the application, run the following command:

python -m streamlit run app.py

This will start the Streamlit server and open the application in your default web browser.

chatpdf's People

Contributors

shubhranpara avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.