Update
Browse files
app.py
CHANGED
@@ -212,10 +212,12 @@ with demo:
|
|
212 |
gr.Dataframe(fixed_by_comp_df)
|
213 |
gr.Dataframe(unique_bugs_df)
|
214 |
fixed_bug_title_id_pairs = [(bug_id_to_title[bug_id], bug_id) for bug_id in sorted(fixed_bug_ids)]
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
|
|
219 |
inspect_issue.change(
|
220 |
fn=lambda bug_id, method: (
|
221 |
bug_id_to_patch.get(bug_id, f"Not Available (bug_id = {bug_id})"),
|
|
|
212 |
gr.Dataframe(fixed_by_comp_df)
|
213 |
gr.Dataframe(unique_bugs_df)
|
214 |
fixed_bug_title_id_pairs = [(bug_id_to_title[bug_id], bug_id) for bug_id in sorted(fixed_bug_ids)]
|
215 |
+
with gr.Row():
|
216 |
+
inspect_issue = gr.Dropdown(fixed_bug_title_id_pairs, label="Inspct Issue", interactive=True)
|
217 |
+
inspect_fix = gr.Dropdown(list(bug_ids_to_patches.keys()), label="Method(Model)", interactive=True)
|
218 |
+
with gr.Row():
|
219 |
+
golden_patch = gr.Code("", language="cpp", label="Golden Patch")
|
220 |
+
method_patch = gr.Code("", language="cpp", label="APR Patch")
|
221 |
inspect_issue.change(
|
222 |
fn=lambda bug_id, method: (
|
223 |
bug_id_to_patch.get(bug_id, f"Not Available (bug_id = {bug_id})"),
|