CoolFace
Apppublic

Sakshimalekar/text-to-video-agent

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
App README

๐ŸŽฅ DreamMotion - Text to Video AI

A simple yet powerful web application that turns your text descriptions into short videos using AI. Built with Gradio and Replicate.

Features

  • โ€”Text-to-Video: Generate videos from simple text prompts.
  • โ€”Style Selection: Choose from various styles like Cinematic, Animation, Realistic, etc.
  • โ€”Custom Duration: Control the length of the generated video.
  • โ€”Responsive UI: Clean and easy-to-use interface.
  • โ€”Video Preview & Download: Watch the generated video instantly and download it.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Frontend: Gradio
  • โ€”Backend/AI: Replicate API (Zeroscope Model)
  • โ€”Language: Python

๐Ÿš€ How to Run Locally

Prerequisites

  • โ€”Python 3.8 or higher
  • โ€”A Replicate API Token (Get one at replicate.com)

Installation

  1. 1.Clone the repository:
bash
   git clone https://huggingface.co/spaces/Sakshimalekar/text-to-video-agent
   cd text-to-video-agent
  1. 1.Install dependencies:
bash
   pip install -r requirements.txt
  1. 1.Set up Environment Variables:
  2. 2.Create a .env file in the root directory.
  3. 3.Add your Replicate API token:
     REPLICATE_API_TOKEN=r8_YourTokenHere...
  • โ€”Or enter the token directly in the app UI.
  1. 1.Run the App:
bash
   python app.py
  1. 1.Access the App:
  2. 2.Open your browser and go to http://localhost:7860.

๐ŸŒ Deployment

This app is deployed on Hugging Face Spaces: ๐Ÿ‘‰ https://huggingface.co/spaces/Sakshimalekar/text-to-video-agent

To deploy your own:

  1. 1.Fork this Space on Hugging Face
  2. 2.Go to Settings -> Variables and secrets and add REPLICATE_API_TOKEN

๐Ÿ“ License

This project is for educational purposes.