tfrere commited on
Commit
b98a4ba
·
1 Parent(s): eb3ad05

fix .env.example and refactor server.py

Browse files
Files changed (2) hide show
  1. server/.env.example +0 -6
  2. server/server.py +1 -2
server/.env.example CHANGED
@@ -6,12 +6,6 @@ HUGGING_FACE_HUB_TOKEN=your_token_here
6
  # Format: username/repo-name
7
  HUGGING_FACE_STORAGE_REPO=leaderboard-explorer/leaderboard_explorer
8
 
9
- # File path in the repository (required)
10
- HUGGING_FACE_STORAGE_FILE_PATH=final_leaderboards.json
11
-
12
- # Update interval in minutes (optional, default: 15)
13
- UPDATE_INTERVAL_MINUTES=15
14
-
15
  # Server configuration
16
  API_HOST=0.0.0.0
17
  API_PORT=3002
 
6
  # Format: username/repo-name
7
  HUGGING_FACE_STORAGE_REPO=leaderboard-explorer/leaderboard_explorer
8
 
 
 
 
 
 
 
9
  # Server configuration
10
  API_HOST=0.0.0.0
11
  API_PORT=3002
server/server.py CHANGED
@@ -21,5 +21,4 @@ def start():
21
  uvicorn.run("server:app", host=API_HOST, port=API_PORT, reload=True)
22
 
23
  if __name__ == "__main__":
24
- import uvicorn
25
- uvicorn.run("server:app", host=API_HOST, port=API_PORT, reload=True)
 
21
  uvicorn.run("server:app", host=API_HOST, port=API_PORT, reload=True)
22
 
23
  if __name__ == "__main__":
24
+ start()