Spaces:
Runtime error
Runtime error
Edward J. Schwartz
commited on
Commit
·
a17ae36
1
Parent(s):
885832d
More docs
Browse files
app.py
CHANGED
|
@@ -56,9 +56,7 @@ with gr.Blocks() as demo:
|
|
| 56 |
"""
|
| 57 |
# Function/Method Detector
|
| 58 |
|
| 59 |
-
First, upload a binary.
|
| 60 |
-
function's disassembly, and the model's prediction of whether the function
|
| 61 |
-
represents a C++ method or a regular function will be displayed below.
|
| 62 |
|
| 63 |
This model was only trained on 32-bit MSVC++ binaries. You can provide
|
| 64 |
other types of binaries, but the result will probably be gibberish.
|
|
@@ -76,6 +74,12 @@ with gr.Blocks() as demo:
|
|
| 76 |
|
| 77 |
fun_dropdown = gr.Dropdown(label="Select a function", choices=["Woohoo!"], interactive=True)
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
with gr.Row(visible=True) as result:
|
| 80 |
disassembly = gr.Textbox(label="Disassembly", lines=20)
|
| 81 |
clazz = gr.Label()
|
|
|
|
| 56 |
"""
|
| 57 |
# Function/Method Detector
|
| 58 |
|
| 59 |
+
First, upload a binary.
|
|
|
|
|
|
|
| 60 |
|
| 61 |
This model was only trained on 32-bit MSVC++ binaries. You can provide
|
| 62 |
other types of binaries, but the result will probably be gibberish.
|
|
|
|
| 74 |
|
| 75 |
fun_dropdown = gr.Dropdown(label="Select a function", choices=["Woohoo!"], interactive=True)
|
| 76 |
|
| 77 |
+
gr.Markdown("""
|
| 78 |
+
Below you can find the selected function's disassembly, and the model's
|
| 79 |
+
prediction of whether the function is an object-oriented method or a
|
| 80 |
+
regular function.
|
| 81 |
+
""")
|
| 82 |
+
|
| 83 |
with gr.Row(visible=True) as result:
|
| 84 |
disassembly = gr.Textbox(label="Disassembly", lines=20)
|
| 85 |
clazz = gr.Label()
|