news-gif-generator

所属分类:其他
开发工具:Jupyter Notebook
文件大小:0KB
下载次数:0
上传日期:2023-12-03 17:05:46
上 传 者sh-1993
说明:  新闻gif生成器
(news gif generator)

文件列表:
kernel-metadata.json (318, 2023-12-16)
notebook.ipynb (6315, 2023-12-16)
output.gif (6711175, 2023-12-16)
requirements.txt (10, 2023-12-16)

# News GIF Generation This repository contains a Python script that automatically generates a GIF based on a news headline. The script uses the [NewsAPI](https://newsapi.org/) to fetch the latest headlines, and then generates a GIF using the [DiffusionPipeline](https://github.com/huggingface/diffusers) from the `diffusers` Python package for Text-to-Video task. The script is scheduled to run every few minutes. Each time it runs, it fetches a new headline and generates a new GIF, which is then displayed below. The GIF generation process is performed on a GPU. ## Generated GIF Below is the latest generated GIF: ![Generated GIF](output.gif?raw=true&v=1702154011) ## Latest News Headline The latest news headline used to generate the GIF is: **Rwanda: How the country views the UK's asylum deal** You can read more about it [here](https://www.bbc.com/news/world-africa-67659440). ## Requirements - Python 3.8 - Hugging Face account - NewsAPI key - `diffusers` Python package - `invisible_watermark` Python package - `transformers` Python package - `accelerate` Python package - `safetensors` Python package - `moviepy` Python package

近期下载者

相关文件


收藏者