Spaces:
Runtime error
Runtime error
Edward J. Schwartz
commited on
Commit
·
de147fd
1
Parent(s):
b0cef67
Change layout of examples
Browse files
app.py
CHANGED
|
@@ -66,10 +66,6 @@ with gr.Blocks() as demo:
|
|
| 66 |
)
|
| 67 |
|
| 68 |
file_widget = gr.File(label="Binary file")
|
| 69 |
-
example_widget = gr.Examples(
|
| 70 |
-
examples=[f.path for f in os.scandir(os.path.join(os.path.dirname(__file__), "examples"))],
|
| 71 |
-
inputs=file_widget,
|
| 72 |
-
)
|
| 73 |
|
| 74 |
with gr.Column(visible=False) as col:
|
| 75 |
#output = gr.Textbox("Output")
|
|
@@ -79,6 +75,12 @@ with gr.Blocks() as demo:
|
|
| 79 |
disassembly = gr.Textbox(label="Disassembly", lines=20)
|
| 80 |
clazz = gr.Label()
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
def file_change_fn(file):
|
| 83 |
|
| 84 |
if file is None:
|
|
|
|
| 66 |
)
|
| 67 |
|
| 68 |
file_widget = gr.File(label="Binary file")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
with gr.Column(visible=False) as col:
|
| 71 |
#output = gr.Textbox("Output")
|
|
|
|
| 75 |
disassembly = gr.Textbox(label="Disassembly", lines=20)
|
| 76 |
clazz = gr.Label()
|
| 77 |
|
| 78 |
+
example_widget = gr.Examples(
|
| 79 |
+
examples=[f.path for f in os.scandir(os.path.join(os.path.dirname(__file__), "examples"))],
|
| 80 |
+
inputs=file_widget,
|
| 81 |
+
outputs=[all_dis_state, disassembly, clazz]
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
def file_change_fn(file):
|
| 85 |
|
| 86 |
if file is None:
|