Spaces:
Running
Running
| # AU Agent - Google Cloud Shell Quick Setup Script (DEPRECATED) | |
| # ============================================================ | |
| # This script is kept for historical / manual-recovery purposes. | |
| # The au-agent no longer runs ON Cloud Shell. Instead, the Flask | |
| # backend runs on HuggingFace Spaces and uses `gcloud cloud-shell ssh` | |
| # to DELEGATE only the download/trim step to Cloud Shell (where | |
| # YouTube is reachable and disk is plentiful). | |
| # | |
| # As of v1.3.0, WARP proxy has been removed entirely. The HF Space | |
| # image no longer contains wgcf or wireproxy — YouTube downloads | |
| # happen exclusively on Cloud Shell. | |
| # | |
| # To set up the HF Space side: | |
| # 1. Upload `gcloud-backup.zip` to the HF Space repo ROOT (not a | |
| # subfolder). The Dockerfile has `COPY . /app/`, so the file | |
| # ends up at `/app/gcloud-backup.zip` inside the container. | |
| # 2. The Space's entrypoint.sh will auto-restore credentials on boot | |
| # via the Python `cloudshell` module. The boot log prints every | |
| # candidate path it tried, so credential issues are easy to spot. | |
| # 3. Alternatively, trigger restoration from the Settings tab in the | |
| # web UI (Restore button under "Cloud Shell" section), or POST to | |
| # /api/cloudshell/restore. | |
| # | |
| # On the Cloud Shell side, `python3 server.py` must already be present | |
| # in the user's home directory. The HF Space invokes it as: | |
| # python3 server.py --id "<task_id>" --url "<yt_url>" --start "<HH:MM:SS>" --end "<HH:MM:SS>" | |
| # and streams its stdout/stderr back to the web UI's Live Output panel. | |
| # ============================================================ | |
| echo "[DEPRECATED] setup_cloudshell.sh -- see header comment for new flow" | |
| echo "This script is no longer used by the au-agent. It is kept only as" | |
| echo "documentation of the legacy manual Cloud Shell setup." | |
| echo "" | |
| echo "As of v1.3.0, WARP proxy has been removed. The HF Space image" | |
| echo "contains only Google Cloud SDK + ffmpeg + Python deps." | |