Spaces:
Running
Running
fix error
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import gradio as gr
|
|
2 |
import pandas as pd
|
3 |
import os
|
4 |
|
5 |
-
# clone / pull the lmeh eval data
|
6 |
-
TOKEN = os.environ.get("TOKEN", None)
|
7 |
-
RESULTS_REPO = f"lukecq/SeaExam-results"
|
8 |
-
CACHE_PATH=os.getenv("HF_HOME", ".")
|
9 |
-
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
|
10 |
|
11 |
# Load the CSV file
|
12 |
def load_csv(file_path):
|
@@ -20,7 +20,7 @@ data = load_csv(csv_path)
|
|
20 |
def show_data():
|
21 |
return data
|
22 |
|
23 |
-
iface = gr.Interface(fn=show_data, outputs="dataframe", title="SeaExam Leaderboard",
|
24 |
description="Leaderboard for the SeaExam competition.")
|
25 |
iface.launch()
|
26 |
|
|
|
2 |
import pandas as pd
|
3 |
import os
|
4 |
|
5 |
+
# # clone / pull the lmeh eval data
|
6 |
+
# TOKEN = os.environ.get("TOKEN", None)
|
7 |
+
# RESULTS_REPO = f"lukecq/SeaExam-results"
|
8 |
+
# CACHE_PATH=os.getenv("HF_HOME", ".")
|
9 |
+
# EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
|
10 |
|
11 |
# Load the CSV file
|
12 |
def load_csv(file_path):
|
|
|
20 |
def show_data():
|
21 |
return data
|
22 |
|
23 |
+
iface = gr.Interface(fn=show_data, inputs = None, outputs="dataframe", title="SeaExam Leaderboard",
|
24 |
description="Leaderboard for the SeaExam competition.")
|
25 |
iface.launch()
|
26 |
|