Spaces:
Runtime error
Runtime error
File size: 762 Bytes
7269ed4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/data/data/com.termux/files/usr/bin/bash
echo "=== TIA CLOUD LAUNCHER ==="
# 1. Sync local QGTNL to HF tunnel
echo "[1] Syncing local QGTNL to HF tunnel..."
rsync -avz ~/QGTNL/ /storage/emulated/0/hf_tunnel/QGTNL/
# 2. Trigger HuggingFace Space worker
echo "[2] Triggering HF compute worker..."
curl -X POST https://huggingface.co/api/spaces/YOUR_USERNAME/YOUR_SPACE/run \
-H "Authorization: Bearer YOUR_HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data": ["run"]}'
# 3. Wait for HF compute to finish
echo "[3] Waiting for HF worker to complete..."
sleep 25
# 4. Pull results back through your tunnel
echo "[4] Pulling results back to Oppo..."
rsync -avz /storage/emulated/0/hf_tunnel/QGTNL_output/ ~/QGTNL/
echo "=== DONE ==="
|