lyi029 commited on
Commit
36eeddd
·
1 Parent(s): e020aa8
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -190,6 +190,7 @@ async def predict_malware(files: List[UploadFile] = File(...)):
190
  with open(log_path, "a") as f:
191
  f.write(json.dumps({
192
  "label": final_label,
 
193
  "embedding": best_embedding["embedding"],
194
  "source": best_embedding["filename"]
195
  }) + "\n")
 
190
  with open(log_path, "a") as f:
191
  f.write(json.dumps({
192
  "label": final_label,
193
+ "text" : asm_code,
194
  "embedding": best_embedding["embedding"],
195
  "source": best_embedding["filename"]
196
  }) + "\n")