File size: 879 Bytes
5d435b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Hugging Face Spaces Deployment Guide

## Files to Upload

Upload these files to your HF Space:
- `app.py` (entry point)
- `index_interface_supabase.py`
- `cryptoindex.py`
- `updater.py`
- `requirements.txt`

**DO NOT upload:**
- `.env` (use HF Secrets instead)
- `.git/` directory
- `__pycache__/`
- `index_interface.py` (old version)

## Setting up Secrets

In your Space settings → Variables and secrets, add:
- `SUPABASE_URL` = your-supabase-url
- `SUPABASE_KEY` = your-supabase-key  
- `POLYGON_API_KEY` = your-polygon-key

## Space Configuration

1. Create new Space
2. Select "Gradio" as the SDK
3. Choose "Private" visibility
4. Upload files
5. Add secrets
6. Space will auto-deploy

## Testing

Your app will be available at:
`https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME`

The private setting ensures only you (and people you authorize) can access it.