ejschwartz commited on
Commit
5f0a407
·
1 Parent(s): 121040a

README.md description

Browse files
Files changed (3) hide show
  1. README.md +9 -1
  2. main.py +2 -10
  3. requirements.txt +2 -1
README.md CHANGED
@@ -8,4 +8,12 @@ pinned: false
8
  license: apache-2.0
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
8
  license: apache-2.0
9
  ---
10
 
11
+ This is a space testing a method for evaluating the quality of decompilation.
12
+
13
+ Currently unhandled features:
14
+ * PIC stuff
15
+ * Global references
16
+ * Internal function calls
17
+ * Wildcards in target function?
18
+ * External function calls (e.g., printf)
19
+ * How to extract compilable decompilation from decompilers?
main.py CHANGED
@@ -1,20 +1,12 @@
1
  import editdistance
 
2
  from hexdump2 import hexdump
3
  import gradio as gr
4
  import shlex
5
  import subprocess
6
  import tempfile
7
 
8
- description = """This is a space testing a method for evaluating the quality of decompilation.
9
-
10
- Currently unhandled features:
11
- * PIC stuff
12
- * Global references
13
- * Internal function calls
14
- * Wildcards in target function?
15
- * External function calls (e.g., printf)
16
- * How to extract compilable decompilation from decompilers?
17
- """
18
 
19
  def trim(str, n):
20
  return "\n".join(str.splitlines()[n:])
 
1
  import editdistance
2
+ import frontmatter
3
  from hexdump2 import hexdump
4
  import gradio as gr
5
  import shlex
6
  import subprocess
7
  import tempfile
8
 
9
+ description = frontmatter.load("README.md").content
 
 
 
 
 
 
 
 
 
10
 
11
  def trim(str, n):
12
  return "\n".join(str.splitlines()[n:])
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  editdistance
2
  gradio
3
- hexdump2
 
 
1
  editdistance
2
  gradio
3
+ hexdump2
4
+ python-frontmatter