Reload UI breaks due to incorrect id (TopRow related)
Eugeniusz-Gienek opened this issue · 0 comments
Eugeniusz-Gienek commented
- What is going on:
When this plugin is enabled you'll get your interface broken when pressing "Reload UI" button - up until stop the server and start it over.
- Why is it happening? (possibly)
in the file
scripts/m2m_ui.py
in functionon_ui_tabs
you're creating aToprow
object withid_part
. For some reason when pressing "Reload UI" button until server restarts this code adds "_1" to the "Generate" button in txt2img tab - and thus all Gradio scripts which expecttxt2img_interrupt
,txt2img_skip
andtxt2img_generate
ids have in the txt2img tabtxt2img_interrupt_1
,txt2img_skip_1
andtxt2img_generate_1
- which generates errors in Gradio and it silently breaks. I would recommend rewriting the UI interface code with omitting using theToprow
class.