Spaces:
Sleeping
Sleeping
| set -euo pipefail | |
| start_image_path=/Users/lehongwu/Projects/others/lyrics/VideoGeneration/contents_zhuyu/bg3_frame0.png | |
| export http_proxy="http://127.0.0.1:7890" | |
| export https_proxy="http://127.0.0.1:7890" | |
| if [[ -z "${GEMINI_API_KEY:-}" ]]; then | |
| echo "Error: GEMINI_API_KEY is not set." | |
| echo 'Run: export GEMINI_API_KEY="your_api_key"' | |
| exit 1 | |
| fi | |
| datetime=$(date +%m%d%H%M%S) | |
| name=img_cond_start_end | |
| output_dir="output/${name}_${datetime}" | |
| prompt=" | |
| Transform this image into: The water flows slowly under the moonlight. Loop video. | |
| " | |
| python gen_video_image_start_end.py \ | |
| --prompt "$prompt" \ | |
| --start-image-path "$start_image_path" \ | |
| --resolution 4k \ | |
| --duration 8 \ | |
| --aspect-ratio 16:9 \ | |
| --name "$name" \ | |
| --output_dir "$output_dir" | |