Elfsong commited on
Commit
16d5f45
·
1 Parent(s): f830b7d
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -46,6 +46,13 @@ if "problem" in st.query_params:
46
  },
47
  column_order=("input", "output"),
48
  )
 
 
 
 
 
 
 
49
 
50
  else:
51
  tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
 
46
  },
47
  column_order=("input", "output"),
48
  )
49
+
50
+ with st.expander("Test Case Generator"):
51
+ test_case_generator = json.loads(problem_instance["test_case_generator"])
52
+ prompt = "# For now, we only disclose the top 10 lines of the test case generator./n# the full version will be released after the paper review process.\n"
53
+ test_case_generator = "\n".join(test_case_generator.split("\n")[:10])
54
+ st.code(prompt+test_case_generator)
55
+
56
 
57
  else:
58
  tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])