dtcxzyw commited on
Commit
472258c
·
unverified ·
1 Parent(s): aa38e50
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -208,7 +208,9 @@ with demo:
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")
 
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
+ inspect_issue = gr.Dropdown(fixed_bug_title_id_pairs, label="Inspct Issue", interactive=True)
212
+ golden_patch = gr.Code("", language="cpp", label="Golden Patch")
213
+ inspect_issue.change(fn=lambda bug_id: dataset["test"][bug_id]["patch"], outputs=golden_patch)
214
 
215
  with gr.TabItem("🚀 Submission", elem_id="llm-benchmark-tab-table", id=1):
216
  gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")