Spaces:
Running
Running
update .env variables
Browse files- README.md +2 -4
- server/server.py +0 -1
README.md
CHANGED
@@ -47,9 +47,9 @@ API_HOST=0.0.0.0
|
|
47 |
API_PORT=3002
|
48 |
```
|
49 |
|
50 |
-
The `
|
51 |
|
52 |
-
The `
|
53 |
|
54 |
## Local Development
|
55 |
|
@@ -72,5 +72,3 @@ poetry run dev
|
|
72 |
## Deployment
|
73 |
|
74 |
The application is configured to be deployed on a Hugging Face Space using Docker.
|
75 |
-
|
76 |
-
When deploying, make sure to set the `HF_TOKEN` as a secret in your deployment environment.
|
|
|
47 |
API_PORT=3002
|
48 |
```
|
49 |
|
50 |
+
The `HUGGING_FACE_HUB_TOKEN` is required to access private datasets on Hugging Face. You can get your token from your [Hugging Face account settings](https://huggingface.co/settings/tokens).
|
51 |
|
52 |
+
The `HUGGING_FACE_REPO_ID` specifies which dataset repository to use. By default, it points to the main leaderboard explorer dataset.
|
53 |
|
54 |
## Local Development
|
55 |
|
|
|
72 |
## Deployment
|
73 |
|
74 |
The application is configured to be deployed on a Hugging Face Space using Docker.
|
|
|
|
server/server.py
CHANGED
@@ -8,7 +8,6 @@ import json
|
|
8 |
from datetime import datetime, timedelta
|
9 |
import aiofiles
|
10 |
import aiofiles.os
|
11 |
-
import asyncio
|
12 |
|
13 |
# Load environment variables
|
14 |
load_dotenv()
|
|
|
8 |
from datetime import datetime, timedelta
|
9 |
import aiofiles
|
10 |
import aiofiles.os
|
|
|
11 |
|
12 |
# Load environment variables
|
13 |
load_dotenv()
|