Spaces:
Sleeping
Sleeping
Commit
·
747e005
1
Parent(s):
94a508d
update
Browse files
main.py
CHANGED
@@ -58,7 +58,7 @@ def predict(target_bytes, source, compiler, flags):
|
|
58 |
return (
|
59 |
hexdump(compiled_bytes, result="return"),
|
60 |
hexdump(target_bytes, result="return"),
|
61 |
-
editdistance.eval(compiled_bytes, target_bytes)
|
62 |
)
|
63 |
|
64 |
|
@@ -83,7 +83,7 @@ def run():
|
|
83 |
outputs=[
|
84 |
gr.Textbox(label="Compiled bytes"),
|
85 |
gr.Textbox(label="Target bytes"),
|
86 |
-
gr.Number(label="
|
87 |
],
|
88 |
)
|
89 |
|
|
|
58 |
return (
|
59 |
hexdump(compiled_bytes, result="return"),
|
60 |
hexdump(target_bytes, result="return"),
|
61 |
+
editdistance.eval(compiled_bytes, target_bytes)
|
62 |
)
|
63 |
|
64 |
|
|
|
83 |
outputs=[
|
84 |
gr.Textbox(label="Compiled bytes"),
|
85 |
gr.Textbox(label="Target bytes"),
|
86 |
+
gr.Number(label="Edit distance"),
|
87 |
],
|
88 |
)
|
89 |
|