Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
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(
|