File size: 1,054 Bytes
48fb86c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Deploy to Hugging Face Spaces

## Step 1: Create the Space
1. Go to [Hugging Face Spaces](https://huggingface.co/spaces).
2. Click **Create new Space**.
3. Enter a name (e.g., `sap-finance-dashboard`).
4. Select **Gradio** as the SDK.
5. Choose **Public** or **Private**.
6. Click **Create Space**.

## Step 2: Push Code
Run these commands in your terminal:

```powershell
# Add the Hugging Face remote (replace <username> with your HF username)
git remote add hf https://huggingface.co/spaces/<username>/sap-finance-dashboard

# Push the code
git push hf main
```

*Note: You will be asked for your Hugging Face username and password (token).*

## Step 3: Configure Secrets
1. Go to your Space's **Settings** tab.
2. Scroll to **Variables and secrets**.
3. Click **New secret**.
4. Name: `HUGGINGFACE_TOKEN`
5. Value: Your Hugging Face Access Token (from [Settings > Access Tokens](https://huggingface.co/settings/tokens)).

## Step 4: Enjoy!
Your app will build and start automatically. You can view the build logs in the **Logs** tab of your Space.