Spaces:
Paused
Paused
metadata
title: Catub
emoji: π»
colorFrom: red
colorTo: red
sdk: docker
pinned: true
short_description: Catuserbot Huggingface Deploy
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/63f08acc6309c84d5f480a28/0xl6BKfapTg6hU9sEqhq-.jpeg
Catuserbot π» - Huggingface Deploy
This guide walks you through deploying Catuserbot to a Huggingface Space and setting up a keep-alive service.
π Deploy the Space
- Create an account at huggingface.co.
- Duplicate this Space (Make sure you set the Visibility to Private, otherwise your data will be public!).
- Navigate to the Files tab.
- Modify the
config.pyfile with your specific values. - You are done with the setup! Let it load (you can check the logs to monitor the build process).
π Get Huggingface Access Token
To keep the bot alive, you need a token to access your private space.
- Go to your Huggingface Profile Settings > Access Tokens.
- Create a new token with "read" permission.
- Save this token somewhere safe for the next step.
β° Implement Keep-Alive Service
Hugging Face pauses free spaces after periods of inactivity. To prevent this, we use a cron job to ping the space.
- Create an account at cron-job.org.
- Create a new cronjob with the following preferences:
Common Settings:
- Title:
<random-name> - URL:
https://<your-hf-username>-<repo-name>.hf.space - Execution schedule:
Every 15 minutes
- Title:
Advanced Settings (Headers):
- User-Agent:
<random-user-agent> - Authorization:
Bearer <your-hf-access-token>
- User-Agent:
- Click Save and you are done! Your Catuserbot will now stay awake.
π¬ Need Help?
If you run into any issues or have questions, our community is here to help!