Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elizabethsiegle/cf-ai-lora-news-summarizer
Python webapp that summarizes news with Cloudflare Workers AI LoRA, Mistral, Beautifulsoup, and Streamlit
https://github.com/elizabethsiegle/cf-ai-lora-news-summarizer
beautifulsoup beautifulsoup4 cloudflare cloudflare-ai cloudflare-workers cloudflare-workers-ai lora mistral-7b python streamlit
Last synced: 28 days ago
JSON representation
Python webapp that summarizes news with Cloudflare Workers AI LoRA, Mistral, Beautifulsoup, and Streamlit
- Host: GitHub
- URL: https://github.com/elizabethsiegle/cf-ai-lora-news-summarizer
- Owner: elizabethsiegle
- Created: 2024-07-09T05:28:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T18:19:10.000Z (6 months ago)
- Last Synced: 2024-07-13T09:10:32.646Z (6 months ago)
- Topics: beautifulsoup, beautifulsoup4, cloudflare, cloudflare-ai, cloudflare-workers, cloudflare-workers-ai, lora, mistral-7b, python, streamlit
- Language: Python
- Homepage: https://cf-ai-lora-news-summarizer.streamlit.app/
- Size: 324 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI News Summarizer with [Cloudflare Workers AI](https://ai.cloudflare.com/) and [public LoRAs](https://developers.cloudflare.com/workers-ai/fine-tunes/public-loras/)
![app](app.png)
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--
1. Install the necessary libraries with `pip install -r requirements.txt`.2. 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
```
3. Run `streamlit run app.py` to run the app.
4. β¨tadaπhttps://github.com/user-attachments/assets/1f8af809-73d7-4f9f-ae92-9c0206c5c42e