Update
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ bug_id_by_cat = {
|
|
51 |
"hang": [],
|
52 |
}
|
53 |
bug_id_to_comp = dict()
|
|
|
54 |
comp_bug_count = dict()
|
55 |
for issue in dataset["test"]:
|
56 |
bug_id_to_time[issue["bug_id"]] = pd.to_datetime(issue["knowledge_cutoff"])
|
@@ -59,6 +60,7 @@ for issue in dataset["test"]:
|
|
59 |
bug_id_to_comp[issue["bug_id"]] = issue["hints"]["components"]
|
60 |
for comp in issue["hints"]["components"]:
|
61 |
comp_bug_count[comp] = comp_bug_count.get(comp, 0) + 1
|
|
|
62 |
timeline_xs = []
|
63 |
timeline_ys = []
|
64 |
timeline_cols = []
|
@@ -205,7 +207,8 @@ with demo:
|
|
205 |
gr.Dataframe(fixed_by_cat_df)
|
206 |
gr.Dataframe(fixed_by_comp_df)
|
207 |
gr.Dataframe(unique_bugs_df)
|
208 |
-
|
|
|
209 |
|
210 |
with gr.TabItem("🚀 Submission", elem_id="llm-benchmark-tab-table", id=1):
|
211 |
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
|
|
51 |
"hang": [],
|
52 |
}
|
53 |
bug_id_to_comp = dict()
|
54 |
+
bug_id_to_title = dict()
|
55 |
comp_bug_count = dict()
|
56 |
for issue in dataset["test"]:
|
57 |
bug_id_to_time[issue["bug_id"]] = pd.to_datetime(issue["knowledge_cutoff"])
|
|
|
60 |
bug_id_to_comp[issue["bug_id"]] = issue["hints"]["components"]
|
61 |
for comp in issue["hints"]["components"]:
|
62 |
comp_bug_count[comp] = comp_bug_count.get(comp, 0) + 1
|
63 |
+
bug_id_to_title[issue["bug_id"]] = "Issue " + issue["bug_id"] + ": " + issue["issue"]["title"]
|
64 |
timeline_xs = []
|
65 |
timeline_ys = []
|
66 |
timeline_cols = []
|
|
|
207 |
gr.Dataframe(fixed_by_cat_df)
|
208 |
gr.Dataframe(fixed_by_comp_df)
|
209 |
gr.Dataframe(unique_bugs_df)
|
210 |
+
fixed_bug_title_id_pairs = [(bug_id_to_title[bug_id], bug_id) for bug_id in sorted(fixed_bug_ids)]
|
211 |
+
gr.Dropdown(fixed_bug_title_id_pairs, label="Issue ID", interactive=True)
|
212 |
|
213 |
with gr.TabItem("🚀 Submission", elem_id="llm-benchmark-tab-table", id=1):
|
214 |
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|