cf-ai-lora-news-summarizer
cf-ai-lora-news-summarizer copied to clipboard
Python webapp that summarizes news with Cloudflare Workers AI LoRA, Mistral, Beautifulsoup, and Streamlit
AI News Summarizer with Cloudflare Workers AI and public LoRAs
Run fine-tuned inference with adapters trained with Low-Rank Adaptation for free.
This project uses the mistral-7b-instruct-v0.1
fine-tune and cf-public-cnn-summarization
LoRA adapter.
To run the app--
-
Install the necessary libraries with
pip install -r requirements.txt
. -
Make a .env file with the following, replacing the Cloudflare API Token and Cloudflare Account ID with your own credentials from your Cloudflare dashboard Workers & Pages Overview:
CF_API_TOKEN=XXX
CF_ACCOUNT_ID=XXX
- Run
streamlit run app.py
to run the app. - ✨tada🎉
https://github.com/user-attachments/assets/1f8af809-73d7-4f9f-ae92-9c0206c5c42e