Spaces:
Sleeping
Sleeping
Commit
·
2834bee
1
Parent(s):
4ba5231
upgrade leaderboard
Browse files
app.py
CHANGED
@@ -872,6 +872,16 @@ with gr.Blocks(css=css) as demo:
|
|
872 |
all_dfs.append(gr.DataFrame(interactive=False))
|
873 |
|
874 |
# Submission section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
gr.Markdown("---")
|
876 |
gr.Markdown(f"## Submit Your Results: {os.getenv('LLMJudgeTest')}")
|
877 |
gr.Markdown("""
|
|
|
872 |
all_dfs.append(gr.DataFrame(interactive=False))
|
873 |
|
874 |
# Submission section
|
875 |
+
|
876 |
+
# Split the text into a list
|
877 |
+
test_data = os.getenv('LLMJudgeTest').split()
|
878 |
+
# Reshape the list into a 2D array where each row contains 4 elements
|
879 |
+
test_data = [test_data[i:i+4] for i in range(0, len(test_data), 4)]
|
880 |
+
# Create a DataFrame
|
881 |
+
df = pd.DataFrame(test_data, columns=['qid', 'Q0', 'pid', 'score'])
|
882 |
+
# Display the DataFrame
|
883 |
+
print(df)
|
884 |
+
|
885 |
gr.Markdown("---")
|
886 |
gr.Markdown(f"## Submit Your Results: {os.getenv('LLMJudgeTest')}")
|
887 |
gr.Markdown("""
|