ejschwartz commited on
Commit
2cd3737
·
verified ·
1 Parent(s): cf1b7f7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -16,9 +16,10 @@ def predict(decompiled_code):
16
 
17
  # subprocess.check_output(["python", "/home/ReSym/process_data/prep_decompiled.py", code_file_name, file_save_dir, parsed_save_dir])
18
  output = subprocess.run(["/home/ReSym/clang-parser/build/field_access", code_file_name, field_file_name], text=True, capture_output=True)
 
 
19
 
20
- return output.stdout
21
-
22
 
23
  def run():
24
  demo = gr.Interface(
 
16
 
17
  # subprocess.check_output(["python", "/home/ReSym/process_data/prep_decompiled.py", code_file_name, file_save_dir, parsed_save_dir])
18
  output = subprocess.run(["/home/ReSym/clang-parser/build/field_access", code_file_name, field_file_name], text=True, capture_output=True)
19
+ print(output)
20
+ print(output.stdout)
21
 
22
+ return open(field_file_name).read()
 
23
 
24
  def run():
25
  demo = gr.Interface(