Spaces:
Running
Running
Commit
·
5f7c7b0
1
Parent(s):
e92c772
JSON viewer
Browse files
main.py
CHANGED
@@ -40,7 +40,6 @@ with gr.Blocks() as demo:
|
|
40 |
## TODOs
|
41 |
* Avoid re-running Ghidra when changing the function
|
42 |
* Make predictions for variables in non-unique storage locations
|
43 |
-
* Use JSON viewer for model output
|
44 |
"""
|
45 |
)
|
46 |
|
@@ -69,20 +68,19 @@ with gr.Blocks() as demo:
|
|
69 |
|
70 |
with gr.Row(visible=True) as result:
|
71 |
disassembly = gr.Code(
|
72 |
-
label="Disassembly",
|
73 |
)
|
74 |
original_decompile = gr.Code(
|
75 |
language="c",
|
76 |
-
label="Original Decompilation",
|
77 |
)
|
78 |
decompile = gr.Code(
|
79 |
language="c",
|
80 |
label="Renamed and retyped Decompilation",
|
81 |
-
value="Please wait...",
|
82 |
lines=20,
|
83 |
)
|
84 |
-
model_output = gr.
|
85 |
-
label="Model Output"
|
86 |
)
|
87 |
# with gr.Column():
|
88 |
# clazz = gr.Label()
|
@@ -157,7 +155,7 @@ with gr.Blocks() as demo:
|
|
157 |
disassembly: gr.Textbox(value=json_info["disassembly"]),
|
158 |
original_decompile: gr.Textbox(value=json_info["original_decompile"]),
|
159 |
decompile: gr.Textbox(value=json_info["decompile"]),
|
160 |
-
model_output: gr.
|
161 |
}
|
162 |
|
163 |
# Need to put intro as output to get progress to work!
|
|
|
40 |
## TODOs
|
41 |
* Avoid re-running Ghidra when changing the function
|
42 |
* Make predictions for variables in non-unique storage locations
|
|
|
43 |
"""
|
44 |
)
|
45 |
|
|
|
68 |
|
69 |
with gr.Row(visible=True) as result:
|
70 |
disassembly = gr.Code(
|
71 |
+
label="Disassembly", lines=20
|
72 |
)
|
73 |
original_decompile = gr.Code(
|
74 |
language="c",
|
75 |
+
label="Original Decompilation", lines=20
|
76 |
)
|
77 |
decompile = gr.Code(
|
78 |
language="c",
|
79 |
label="Renamed and retyped Decompilation",
|
|
|
80 |
lines=20,
|
81 |
)
|
82 |
+
model_output = gr.JSON(
|
83 |
+
label="Model Output"
|
84 |
)
|
85 |
# with gr.Column():
|
86 |
# clazz = gr.Label()
|
|
|
155 |
disassembly: gr.Textbox(value=json_info["disassembly"]),
|
156 |
original_decompile: gr.Textbox(value=json_info["original_decompile"]),
|
157 |
decompile: gr.Textbox(value=json_info["decompile"]),
|
158 |
+
model_output: gr.JSON(value=json_info["model_output"]),
|
159 |
}
|
160 |
|
161 |
# Need to put intro as output to get progress to work!
|