Skip to content

Commit 36f8591

Browse files
change to load from env
1 parent 30b7f37 commit 36f8591

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

fastchat/serve/monitor/copilot_arena.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import gradio as gr
22
import pandas as pd
33
import requests
4+
import os
45

56
from fastchat.serve.monitor.monitor import recompute_final_ranking
67

7-
copilot_arena_leaderboard_url = "https://leaderboard-server.fly.dev/elo"
8+
copilot_arena_leaderboard_url = os.getenv("COPILOT_ARENA_LEADERBOARD_URL")
9+
10+
if not copilot_arena_leaderboard_url:
11+
raise ValueError(
12+
"COPILOT_ARENA_LEADERBOARD_URL environment variable is not set. "
13+
"Please configure it to a valid URL."
14+
)
815

916

1017
def process_copilot_arena_leaderboard(leaderboard):

0 commit comments

Comments
 (0)