This web application uses the LLaMA2 model for text summarization and Flask as the web framework for users to input text and get a summary.
- Install the required packages:
pip install -q transformers einops accelerate langchain bitsandbytes
!huggingface-cli login
!pip install sentencepiece
pip install langchain_community
- Run the Flask app:
python app.py
- Access the web application at the provided URL (usually
http://localhost:5000/
).
- Enter a paragraph of text into the input field.
- Click the "Summary" button to generate a summary.
- The output summary will be displayed in the table below the input field.
- Transformers
- Einops
- Accelerate
- Langchain
- Bitsandbytes
- Sentencepiece