Update
Browse files
app.py
CHANGED
@@ -211,7 +211,8 @@ with demo:
|
|
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(
|
214 |
-
fn=lambda bug_id: dataset["test"][bug_id]["patch"] if bug_id in dataset["test"] else "",
|
|
|
215 |
outputs=golden_patch,
|
216 |
)
|
217 |
|
|
|
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(
|
214 |
+
fn=lambda bug_id: dataset["test"][bug_id]["patch"] if bug_id in dataset["test"] else "Not Available",
|
215 |
+
inputs=inspect_issue,
|
216 |
outputs=golden_patch,
|
217 |
)
|
218 |
|