Spaces:
Sleeping
Sleeping
Commit
·
0d4ef9d
1
Parent(s):
fa2e9f5
update
Browse files
main.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from hexdump2 import hexdump
|
2 |
import gradio as gr
|
3 |
import shlex
|
@@ -60,7 +61,7 @@ def run():
|
|
60 |
fn=predict,
|
61 |
description=description,
|
62 |
inputs=[
|
63 |
-
gr.Textbox(lines=10, label="
|
64 |
gr.Textbox(lines=10, label="Decompiled C Source Code", value="int foo() { return 42; }"),
|
65 |
gr.Textbox(label="Compiler", value="gcc"),
|
66 |
gr.Textbox(label="Compiler Flags", value="-O2"),
|
|
|
1 |
+
import bytes
|
2 |
from hexdump2 import hexdump
|
3 |
import gradio as gr
|
4 |
import shlex
|
|
|
61 |
fn=predict,
|
62 |
description=description,
|
63 |
inputs=[
|
64 |
+
gr.Textbox(lines=10, label="Bytes of Target Function (in hex)", value="61 62 63"),
|
65 |
gr.Textbox(lines=10, label="Decompiled C Source Code", value="int foo() { return 42; }"),
|
66 |
gr.Textbox(label="Compiler", value="gcc"),
|
67 |
gr.Textbox(label="Compiler Flags", value="-O2"),
|