class_docstr: Creates a top row UI with prompts, generate button, styles, extra little buttons for things, and enables some functionality related to their operation
class_docstr_tok: ["Creates","a","top","row","UI","with","prompts",",","generate","button",",","styles",",","extra","little","buttons","for","things",",","and","enables","some","functionality","related","to","their","operation"]
code: def create_submit_box(self):
      with gr.Row(
          elem_id=f"{self.id_part}_generate_box",
          elem_classes=["generate-box"]
          + (["generate-box-compact"] if self.is_compact else []),
          render=not self.is_compact,
      ) as submit_box:
          self.submit_box = submit_box
  
          self.interrupt = gr.Button(
              "Interrupt",
              elem_id=f"{self.id_part}_interrupt",
              elem_classes="generate-box-interrupt",
          )
          self.skip = gr.Button(
              "Skip",
              elem_id=f"{self.id_part}_skip",
              elem_classes="generate-box-skip",
          )
          self.submit = gr.Button(
              "Generate",
              elem_id=f"{self.id_part}_generate",
              variant="primary",
          )
  
          self.skip.click(
              fn=lambda: shared.state.skip(),
              inputs=[],
              outputs=[],
          )
  
          self.interrupt.click(
              fn=lambda: shared.state.interrupt(),
              inputs=[],
              outputs=[],
          )
  
file_path: stable-diffusion-webui/modules/ui_toprow.py
imports: import gradio
  from modules import shared, ui_prompt_styles
  import modules.images
  from modules.ui_components import ToolButton
label_desc: Use image node_id 6 for calling the Toprow obj's underlying member method code with example usage: obj.create_submit_box() without return types