Spaces:
Runtime error
Runtime error
File size: 7,857 Bytes
647c8aa b293d47 647c8aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
---
license: apache-2.0
title: ShortGPT
sdk: gradio
emoji: ๐
colorFrom: red
colorTo: blue
pinned: true
short_description: ShortGPT
---
# ๐๐ฌ ShortGPT
## (Note: ShortX is out, a paid premium automation factory with more capabilities than ShortGPT, check it out at [shortx.ai](https://shortx.ai?ref=sgpt))
<p align="center">
<a href="https://discord.gg/uERx39ru3R">
<img src="https://dcbadge.vercel.app/api/server/uERx39ru3R?compact=true&style=flat">
</a>
<a href="https://star-history.com/#rayventura/shortgpt)">
<img src="https://img.shields.io/github/stars/rayventura/shortgpt?style=social">
</a>
<a href="https://pypi.org/project/shortgpt/">
<img src="https://static.pepy.tech/personalized-badge/shortgpt?period=month&units=international_system&left_color=blue&right_color=green&left_text=Downloads/month">
</a>
<a href="https://docs.shortgpt.ai/">
<img src="https://img.shields.io/badge/docs-visit-blue">
</a>
</p>
<div align="center" style="border-radius: 20px;" width="18%">
<img src="https://github.com/RayVentura/ShortGPT/assets/121462835/083c8dc3-bac5-42c1-a08d-3ff9686d18c5" alt="ShortGPT-logo" style="border-radius: 20px;" width="18%"/>
</div>
<div align="center">
<a href="https://discord.gg/uERx39ru3R">
<img src="https://img.shields.io/discord/1126042224979886160?color=7289da&logo=discord&logoColor=blue&labelColor=white&color=cyan" alt="Join our Discord" height="34">
</a>
</div>
<div align="center">
โก Automating video and short content creation with AI โก
</div>
</br>
Follow the installation steps below for running the web app locally (running the google Colab is highly recommanded).
Please read "installation-notes.md" for more details.
## ๐ฅ Showcase ([Full video on YouTube](https://youtu.be/hpoSHq-ER8U))
https://github.com/RayVentura/ShortGPT/assets/121462835/a802faad-0fd7-4fcb-aa82-6365c27ea5fe
## ๐ฅ Voice Dubbing
https://github.com/RayVentura/ShortGPT/assets/121462835/06f51b2d-f8b1-4a23-b299-55e0e18902ef
## ๐ Show Your Support
We hope you find ShortGPT helpful! If you do, let us know by giving us a star โญ on the repo. It's easy, just click on the 'Star' button at the top right of the page. Your support means a lot to us and keeps us motivated to improve and expand ShortGPT. Thank you and happy content creating! ๐
[![GitHub star chart](https://img.shields.io/github/stars/rayventura/shortgpt?style=social)](https://github.com/RayVentura/ShortGPT/stargazers)
## ๐ ๏ธ How it works
![alt text](https://github.com/RayVentura/ShortGPT/assets/121462835/fcee74d4-f856-4481-949f-244558bf3bfa)
## ๐ Introduction to ShortGPT
ShortGPT is a powerful framework for automating content creation. It simplifies video creation, footage sourcing, voiceover synthesis, and editing tasks. Of the most popular use-cases of ShortGPT is youtube automation and Tiktok creativity program automation.
- ๐๏ธ **Automated editing framework**: Streamlines the video creation process with an LLM oriented video editing language.
- ๐ **Scripts and Prompts**: Provides ready-to-use scripts and prompts for various LLM automated editing processes.
- ๐ฃ๏ธ **Voiceover / Content Creation**: Supports multiple languages including English ๐บ๐ธ, Spanish ๐ช๐ธ, Arabic ๐ฆ๐ช, French ๐ซ๐ท, Polish ๐ต๐ฑ, German ๐ฉ๐ช, Italian ๐ฎ๐น, Portuguese ๐ต๐น, Russian ๐ท๐บ, Mandarin Chinese ๐จ๐ณ, Japanese ๐ฏ๐ต, Hindi ๐ฎ๐ณ,Korean ๐ฐ๐ท, and way over 30 more languages (with EdgeTTS)
- ๐ **Caption Generation**: Automates the generation of video captions.
- ๐๐ฅ **Asset Sourcing**: Sources images and video footage from the internet, connecting with the web and Pexels API as necessary.
- ๐ง **Memory and persistency**: Ensures long-term persistency of automated editing variables with TinyDB.
## ๐ Quick Start: Run ShortGPT on Google Colab (https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing)
If you prefer not to install the prerequisites on your local system, you can use the Google Colab notebook. This option is free and requires no installation setup.
1. Click on the link to the Google Colab notebook: [https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing](https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing)
2. Once you're in the notebook, simply run the cells in order from top to bottom. You can do this by clicking on each cell and pressing the 'Play' button, or by using the keyboard . Enjoy using ShortGPT!
# Instructions for running shortGPT locally
This guide provides step-by-step instructions for installing shortGPT and its dependencies.
To run ShortGPT locally, you need Docker.
## Installation Steps
To run ShortGPT, you need to have docker. Follow the instructions "installation-notes.md" for more details.
1. For running the Dockerfile, do this:
```bash
docker build -t short_gpt_docker:latest .
docker run -p 31415:31415 --env-file .env short_gpt_docker:latest
```
## Running runShortGPT.py Web Interface
2. After running the script, a Gradio interface should open at your local host on port 31415 (http://localhost:31415)
## Framework overview
- ๐ฌ The `ContentShortEngine` is designed for creating shorts, handling tasks from script generation to final rendering, including adding YouTube metadata.
- ๐ฅ The `ContentVideoEngine` is ideal for longer videos, taking care of tasks like generating audio, automatically sourcing background video footage, timing captions, and preparing background assets.
- ๐ฃ๏ธ The `ContentTranslationEngine` is designed to dub and translate entire videos, from mainstream languages to more specific target languages. It takes a video file, or youtube link, transcribe it's audio, translates the content, voices it in a target language, adds captions , and gives back a new video, in a totally different language.
- ๐๏ธ The automated `EditingEngine`, using Editing Markup Language and JSON, breaks down the editing process into manageable and customizable blocks, comprehensible to Large Language Models.
๐ก ShortGPT offers customization options to suit your needs, from language selection to watermark addition.
๐ง As a framework, ShortGPT is adaptable and flexible, offering the potential for efficient, creative content creation.
More documentation incomming, please be patient.
## Technologies Used
ShortGPT utilizes the following technologies to power its functionality:
- **Moviepy**: Moviepy is used for video editing, allowing ShortGPT to make video editing and rendering
- **Openai**: Openai is used for automating the entire process, including generating scripts and prompts for LLM automated editing processes.
- **ElevenLabs**: ElevenLabs is used for voice synthesis, supporting multiple languages for voiceover creation.
- **EdgeTTS**: Microsoft's FREE EdgeTTS is used for voice synthesis, supporting way many more language than ElevenLabs currently.
- **Pexels**: Pexels is used for sourcing background footage, allowing ShortGPT to connect with the web and access a wide range of images and videos.
- **Bing Image**: Bing Image is used for sourcing images, providing a comprehensive database for ShortGPT to retrieve relevant visuals.
These technologies work together to provide a seamless and efficient experience in automating video and short content creation with AI.
## ๐ Contributing
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it would be in the form of a new feature, improved infrastructure, or better documentation.
<p align="center">
<a href="https://star-history.com/#RayVentura/ShortGPT&Date">
<img src="https://api.star-history.com/svg?repos=RayVentura/ShortGPT&type=Date" alt="Star History Chart">
</a>
</p> |