ysharma HF Staff commited on
Commit
66d98cd
·
verified ·
1 Parent(s): 499d63f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -1
README.md CHANGED
@@ -11,4 +11,36 @@ license: mit
11
  short_description: Keep MCP-birthday hackathon spaces availble
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  short_description: Keep MCP-birthday hackathon spaces availble
12
  ---
13
 
14
+ # 🔄 Space Keeper
15
+
16
+ Keeps HuggingFace Spaces alive during hackathon evaluation by pinging them on a schedule.
17
+
18
+ ## What it does
19
+
20
+ - Automatically pings all Spaces in a specified organization every N hours
21
+ - Prevents Spaces from sleeping due to inactivity
22
+ - Logs all runs with success/failure status
23
+ - Provides a manual "Run Now" button for immediate pings
24
+
25
+ ## Configuration
26
+
27
+ Set these environment variables in your Space settings:
28
+
29
+ | Variable | Default | Description |
30
+ |----------|---------|-------------|
31
+ | `ORG_NAME` | `mcp-hackathon` | The HuggingFace organization to monitor |
32
+ | `PING_INTERVAL_HOURS` | `6` | How often to ping (in hours) |
33
+ | `REQUEST_TIMEOUT` | `30` | Timeout for each ping request (in seconds) |
34
+
35
+ ## Usage
36
+
37
+ 1. Create a new Space with this code
38
+ 2. Set the `ORG_NAME` environment variable to your hackathon org
39
+ 3. The Space will automatically ping all Spaces in that org every 6 hours
40
+ 4. Check the logs in the UI to verify everything is working
41
+
42
+ ## Notes
43
+
44
+ - For ZeroGPU Spaces, you may want to reduce `PING_INTERVAL_HOURS` to 3 or 4
45
+ - The Space stores logs in `run_logs.json` (kept for last 100 runs)
46
+ - Logs persist as long as the Space is running