CogVideo/inference/gradio_composite_demo
Octopus 3fcb95bbeb feat: add MiniMax provider support for prompt enhancement
- Add _get_llm_client() helper to auto-select LLM provider from env vars
- Support MINIMAX_API_KEY to use MiniMax (MiniMax-M2.7) as provider
- MINIMAX_API_KEY takes priority over OPENAI_API_KEY when both are set
- Default base URL: https://api.minimax.io/v1 (overridable via MINIMAX_BASE_URL)
- Update all three demo scripts: convert_demo.py, gradio_web_demo.py, gradio_composite_demo/app.py
- Add unit tests covering provider selection and fallback behaviour
2026-04-06 22:44:32 +08:00
..
2024-09-28 16:36:40 +08:00
2025-03-22 15:14:06 +08:00
2025-03-22 15:14:06 +08:00
2025-03-22 15:14:06 +08:00
2025-03-22 15:14:06 +08:00
2025-03-22 15:14:06 +08:00

title emoji colorFrom colorTo sdk sdk_version suggested_hardware suggested_storage app_port app_file models tags short_description disable_embedding
CogVideoX-5B 🎥 yellow blue gradio 4.42.0 a10g-large large 7860 app.py
THUDM/CogVideoX-5b
cogvideox
video-generation
thudm
Text-to-Video false

Gradio Composite Demo

This Gradio demo integrates the CogVideoX-5B model, allowing you to perform video inference directly in your browser. It supports features like UpScale, RIFE, and other functionalities.

Environment Setup

Set the following environment variables in your system:

  • OPENAI_API_KEY = your_api_key
  • OPENAI_BASE_URL= your_base_url
  • GRADIO_TEMP_DIR= gradio_tmp

Installation

pip install -r requirements.txt

Running the code

python app.py