dtcxzyw commited on
Commit
58e7ea9
·
unverified ·
1 Parent(s): 5bed737
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -229,14 +229,11 @@ with demo:
229
  outputs=[golden_patch, method_patch],
230
  )
231
  inspect_fix.change(
232
- fn=lambda bug_id, method: (
233
- bug_id_to_patch.get(bug_id, f"Not Available (bug_id = {bug_id})"),
234
- bug_ids_to_patches.get(method, dict()).get(
235
- bug_id, f"Not Available (method = {method}, bug_id = {bug_id})"
236
- ),
237
  ),
238
  inputs=[inspect_issue, inspect_fix],
239
- outputs=[golden_patch, method_patch],
240
  )
241
 
242
  with gr.TabItem("🚀 Submission", elem_id="llm-benchmark-tab-table", id=1):
 
229
  outputs=[golden_patch, method_patch],
230
  )
231
  inspect_fix.change(
232
+ fn=lambda bug_id, method: bug_ids_to_patches.get(method, dict()).get(
233
+ bug_id, f"Not Available (method = {method}, bug_id = {bug_id})"
 
 
 
234
  ),
235
  inputs=[inspect_issue, inspect_fix],
236
+ outputs=[method_patch],
237
  )
238
 
239
  with gr.TabItem("🚀 Submission", elem_id="llm-benchmark-tab-table", id=1):