Skip to content

Commit

Permalink
change to load from env
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamittal13 committed Nov 18, 2024
1 parent 30b7f37 commit 36f8591
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fastchat/serve/monitor/copilot_arena.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import gradio as gr
import pandas as pd
import requests
import os

from fastchat.serve.monitor.monitor import recompute_final_ranking

copilot_arena_leaderboard_url = "https://leaderboard-server.fly.dev/elo"
copilot_arena_leaderboard_url = os.getenv("COPILOT_ARENA_LEADERBOARD_URL")

if not copilot_arena_leaderboard_url:
raise ValueError(
"COPILOT_ARENA_LEADERBOARD_URL environment variable is not set. "
"Please configure it to a valid URL."
)


def process_copilot_arena_leaderboard(leaderboard):
Expand Down

0 comments on commit 36f8591

Please sign in to comment.