Spaces:
Sleeping
Sleeping
Commit ·
16fc4f3
1
Parent(s): c2e30e3
Make the decompiler configuration scrollable
Browse filesGradio measures an auto-resizing textbox only on mount and value
changes. Inside the collapsed accordion it measured zero height and
hid the scrollbar, so long configurations were clipped. A fixed
height disables the auto-resize and keeps native scrolling.
278 unmodified lines279280281282283284285278 unmodified linescflags = gr.Textbox(label="Compiler options", value=sefm.DEFAULT_CFLAGS, visible=False,info="Optimization, code generation, warning and macro options. The paper’s tool expects x86-64 and no PIE.")with gr.Accordion("Decompiler configuration", open=False) as config_panel:config = gr.Textbox(show_label=False, lines=10, max_lines=24, show_copy_button=True,value=sefm.example_config(),info="Functions to decompile, their argument registers, and the C preamble.")run = gr.Button("Run analysis", variant="primary", size="lg")278 unmodified lines279280281282283284285278 unmodified linescflags = gr.Textbox(label="Compiler options", value=sefm.DEFAULT_CFLAGS, visible=False,info="Optimization, code generation, warning and macro options. The paper’s tool expects x86-64 and no PIE.")with gr.Accordion("Decompiler configuration", open=False) as config_panel:config = gr.Textbox(show_label=False, lines=16, max_lines=16, show_copy_button=True,value=sefm.example_config(),info="Functions to decompile, their argument registers, and the C preamble.")run = gr.Button("Run analysis", variant="primary", size="lg")
app.py+1-1