Edward J. Schwartz commited on
Commit ·
de147fd
1
Parent(s): b0cef67
Change layout of examples
Browse files65 unmodified lines666768697071727374753 unmodified lines79808182838465 unmodified lines)file_widget = gr.File(label="Binary file")example_widget = gr.Examples(examples=[f.path for f in os.scandir(os.path.join(os.path.dirname(__file__), "examples"))],inputs=file_widget,)with gr.Column(visible=False) as col:#output = gr.Textbox("Output")3 unmodified linesdisassembly = gr.Textbox(label="Disassembly", lines=20)clazz = gr.Label()def file_change_fn(file):if file is None:65 unmodified lines6667686970713 unmodified lines75767778798081828384858665 unmodified lines)file_widget = gr.File(label="Binary file")with gr.Column(visible=False) as col:#output = gr.Textbox("Output")3 unmodified linesdisassembly = gr.Textbox(label="Disassembly", lines=20)clazz = gr.Label()example_widget = gr.Examples(examples=[f.path for f in os.scandir(os.path.join(os.path.dirname(__file__), "examples"))],inputs=file_widget,outputs=[all_dis_state, disassembly, clazz])def file_change_fn(file):if file is None:
app.py+6-4