MVP Video:
new_recording.mp4
some generated inforgraphcis by our MVP:
5839005-hd_1080_1920_24fps.mp4
17935482-sd_640_360_25fps.mp4
5849638-sd_640_360_30fps.mp4
5849611-sd_960_540_30fps.mp4
Project Overview:
This project is a Flask-based web application that allows users to generate animated infographic videos based on input text. The application leverages the Pexels API for video content and incorporates natural language processing (NLP) techniques to analyze and transform the input text into a suitable format for video generation.
Features:
- Text-to-Video Conversion: Users can input text, and the application will generate a video based on the content of the text.
- NLP Analysis: The application performs sentiment analysis and semantic segmentation on the input text to better understand its context and meaning.
- Video Generation: The application uses the Pexels API to search for videos that match the processed text and returns a selection of video URLs.
- Logging: The application logs responses from the Pexels API and OpenAI (if integrated) for debugging and analytics purposes.
Technical Details:
- Backend: The application is built using Flask, a Python web framework.
- NLP Libraries: The application utilizes the following NLP libraries:
- TextBlob for sentiment analysis
- Spacy for semantic segmentation
- NLTK for text preprocessing
*transformers
*huggingface
*langchain
- API Integration: The application integrates with the Pexels API for video content.
- Frontend: The application uses HTML, CSS, and JavaScript for the user interface.
Installation and Setup:
-
Clone the repository: git clone https://github.com/Blacksujit/100X-Enginnerres-Hackathon-Submission
-
Install the required packages: pip install -r requirements.txt
-
Set up the environment variables:
OPENAI_API_KEY
: Your OpenAI API key (if using OpenAI integration)
PEXELS_API_KEY
: Your Pexels API key
-
Run the application: python app.py
Usage:
- Open a web browser and navigate to
http://localhost:2000
- Input text in the text box on the homepage and click the "Generate Video" button.
- The application will redirect you to a page displaying the generated video URLs.
Contributing
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch for your feature or fix
- Make your changes and commit them
- Push your branch to your forked repository
- Submit a pull request to the original repository
License
This project is licensed under the MIT License.