Ubuntu 添加 i386 架构支持
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libstdc++6:i386 libgcc-s1:i386 libc6:i386
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libstdc++6:i386 libgcc-s1:i386 libc6:i386
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
Flyway 作用是基于 SQL 脚本的版本控制。将数据库的每次更改都编写为 SQL 脚本,并按版本号命名。Flyway 在应用启动时检查数据库中已应用的迁移版本,并按顺序执行所有新的迁移脚本。
services:
whisper-asr:
image: onerahmet/openai-whisper-asr-webservice:latest
environment:
ASR_MODEL: turbo # (tiny, base, small, medium, large-v3, etc.
ASR_ENGINE: faster_whisper # openai_whisper, faster_whisper, whisperx
ASR_DEVICE: cpu # or cuda 我是cpu服务器所以只能选 cpu
ASR_MODEL_PATH: /data/whisper
HF_ENDPOINT: https://hf-mirror.com # 使用 HF_ENDPOINT 作为国内镜像
volumes:
- ./data/whisper:/data/whisper
ports:
- 29000:9000 # 前面的 29000 可以修改,访问的时候记得调整端口即可
# docker-compose up -d
访问 ip:29000 即可看到 swagger 接口文档
注
[1] docker hub地址 https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice
[2] hf-mirror.com 致力于帮助国内AI开发者快速、稳定的下载模型、数据集
ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).password("123123").withTemplate(inputStream).build();
中的 .password("123123") 就是加密方法