Edward J. Schwartz commited on
Commit
9f73464
·
1 Parent(s): 6bd5d21

I can program, really

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ with gr.Blocks() as demo:
93
 
94
  disassembly_str = fun_data[int(selected_fun, 16)].decode("utf-8")
95
  load_results = model.fn(disassembly_str)
96
- top_k = {e['label']: e['confidence'] for e in d['confidences']}
97
 
98
  return {disassembly: gr.Textbox.update(value=disassembly_str),
99
  clazz: gr.Label.update(top_k)
 
93
 
94
  disassembly_str = fun_data[int(selected_fun, 16)].decode("utf-8")
95
  load_results = model.fn(disassembly_str)
96
+ top_k = {e['label']: e['confidence'] for e in load_results['confidences']}
97
 
98
  return {disassembly: gr.Textbox.update(value=disassembly_str),
99
  clazz: gr.Label.update(top_k)