Spaces:
Running
Running
| import gradio as gr | |
| import pandas as pd | |
| import os | |
| # clone / pull the lmeh eval data | |
| TOKEN = os.environ.get("TOKEN", None) | |
| RESULTS_REPO = f"lukecq/SeaExam-results" | |
| CACHE_PATH=os.getenv("HF_HOME", ".") | |
| EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results") | |
| # Load the CSV file | |
| def load_csv(file_path): | |
| data = pd.read_csv(file_path) | |
| return data | |
| # Example path to your CSV file | |
| csv_path = './results/SeaExam_results_0419.csv' | |
| data = load_csv(csv_path) | |
| def show_data(): | |
| return data | |
| iface = gr.Interface(fn=show_data, outputs="dataframe", title="SeaExam Leaderboard", | |
| description="Leaderboard for the SeaExam competition.") | |
| iface.launch() | |