AiButtons/VideoSoundFXGen

Deploy hunyuan video and mmaudio on modal and the gradio app on aws lambda using cdk

9

stars

3

commits

Python

primary language

Mar 15, 2025

updated

README

AI Video & Sound FX Generator

A Gradio app deployed on AWS Lambda using web adapter that lets you generate videos from text and add AI-generated sound effects. Uses FastHunyuan for video and MMAudio for audio generation.

Models

Requirements

  • Modal account
  • AWS account
  • Node.js 18+ (for CDK)
  • WSL/ Linux/ macOS (bash shell required)

Deploy

  1. Modal setup:
pip install modal
python -m modal setup
  1. AWS & CDK setup:
aws configure
npm install -g aws-cdk
cdk bootstrap
  1. Run deployment:
chmod +x setup.sh
./setup.sh <your-password>  # Password used for endpoint authentication 

The script:

  • Deploys models to Modal with authentication
  • Creates JWT-secured endpoints using provided password
  • Deploys Gradio interface on Lambda with web adapter, and provides the lambda url

Authentication

The password provided to setup.sh is used to:

  • Create secure Modal endpoints
  • Generate JWTs for API authentication
  • Secure communication between Lambda and Modal

Access

Open the Lambda URL provided after deployment to use the Gradio interface.

Contributors

AiButtons/VideoSoundFXGen

Deploy hunyuan video and mmaudio on modal and the gradio app on aws lambda using cdk

9

stars

3

commits

Python

primary language

Mar 15, 2025

updated

README

AI Video & Sound FX Generator

A Gradio app deployed on AWS Lambda using web adapter that lets you generate videos from text and add AI-generated sound effects. Uses FastHunyuan for video and MMAudio for audio generation.

Models

Requirements

  • Modal account
  • AWS account
  • Node.js 18+ (for CDK)
  • WSL/ Linux/ macOS (bash shell required)

Deploy

  1. Modal setup:
pip install modal
python -m modal setup
  1. AWS & CDK setup:
aws configure
npm install -g aws-cdk
cdk bootstrap
  1. Run deployment:
chmod +x setup.sh
./setup.sh <your-password>  # Password used for endpoint authentication 

The script:

  • Deploys models to Modal with authentication
  • Creates JWT-secured endpoints using provided password
  • Deploys Gradio interface on Lambda with web adapter, and provides the lambda url

Authentication

The password provided to setup.sh is used to:

  • Create secure Modal endpoints
  • Generate JWTs for API authentication
  • Secure communication between Lambda and Modal

Access

Open the Lambda URL provided after deployment to use the Gradio interface.

Contributors

Languages

Python

89.4%

Jupyter Notebook

5.2%

Shell

4.7%