1 Star 0 Fork 0

ai/whisper-jax

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
app
app.py
monitor.sh
run_app.sh
benchmarks
whisper_jax
.gitignore
LICENSE
Makefile
README.md
pyproject.toml
setup.py
whisper-jax-tpu.ipynb
克隆/下载
monitor.sh 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
sanchit-gandhi 提交于 2年前 . app updates
#!/bin/bash
waiting=0
check_server() {
url=http://localhost:7860
response_code=$(curl -o /dev/null -s -w "%{http_code}" --connect-timeout 2 $url)
[[ $response_code -ne 200 ]] && {
return 0
}
return 1
}
while [ 1 ]
do
# periodically clear the /tmp directory for files created > 30 mins ago so it doesn't fill up
sudo find /tmp -type f -amin +30 -delete
check_server
if [[ $? -ne 1 ]]
then
if [[ $waiting -eq 0 ]]
then
waiting=1
echo "Restarting"
pkill -9 python
#sudo lsof -t /dev/accel0 | xargs kill -9
sleep 5
mv log.txt log_`date +%Y%m%d%H%M%S`
TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD=10000000000 python ./app.py &> log.txt &
else
echo "Waiting for restart"
fi
else
if [[ $waiting -eq 1 ]]
then
waiting=0
echo "Restarted"
fi
fi
sleep 10
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ai_37/whisper-jax.git
git@gitee.com:ai_37/whisper-jax.git
ai_37
whisper-jax
whisper-jax
main

搜索帮助