Commit ·
fb860f1
1
Parent(s): 505c045
examples
Browse files- examples/true +0 -0
- main.py +6 -5
examples/true
ADDED
|
Binary file (26.9 kB). View file
|
|
|
main.py
CHANGED
|
@@ -33,6 +33,7 @@ def get_functions(file):
|
|
| 33 |
print("Files in TEMP_DIR:")
|
| 34 |
for f in os.listdir(TEMP_DIR):
|
| 35 |
print(f)
|
|
|
|
| 36 |
return o.stdout
|
| 37 |
|
| 38 |
|
|
@@ -106,11 +107,11 @@ TBD
|
|
| 106 |
#min_width=400
|
| 107 |
)
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
|
| 115 |
def file_change_fn(file):
|
| 116 |
|
|
|
|
| 33 |
print("Files in TEMP_DIR:")
|
| 34 |
for f in os.listdir(TEMP_DIR):
|
| 35 |
print(f)
|
| 36 |
+
|
| 37 |
return o.stdout
|
| 38 |
|
| 39 |
|
|
|
|
| 107 |
#min_width=400
|
| 108 |
)
|
| 109 |
|
| 110 |
+
example_widget = gr.Examples(
|
| 111 |
+
examples=[f.path for f in os.scandir(os.path.join(os.path.dirname(__file__), "examples"))],
|
| 112 |
+
inputs=file_widget,
|
| 113 |
+
outputs=[state, disassembly, original_decompile, decompile, model_output],
|
| 114 |
+
)
|
| 115 |
|
| 116 |
def file_change_fn(file):
|
| 117 |
|