yezdata's picture
fix hf ping
df5b9a8
Raw
History Blame Contribute Delete
515 Bytes
name: HF Space Ping - EmCoder API & UI
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
ping:
runs-on: ubuntu-latest
steps:
- name: Wake up EmCoder Model API
run: |
STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" \
--retry 5 \
--retry-delay 15 \
--retry-all-errors \
"https://yezdata-emcoder-api-ui.hf.space/health")
echo "EmCoder Status: $STATUS"
if [ "$STATUS" -ne 200 ]; then exit 1; fi