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_prompts(self):
      with gr.Column(
          elem_id=f"{self.id_part}_prompt_container",
          elem_classes=["prompt-container-compact"]
          if self.is_compact
          else [],
          scale=6,
      ):
          with gr.Row(
              elem_id=f"{self.id_part}_prompt_row",
              elem_classes=["prompt-row"],
          ):
              self.prompt = gr.Textbox(
                  label="Prompt",
                  elem_id=f"{self.id_part}_prompt",
                  show_label=False,
                  lines=3,
                  placeholder="Prompt (press Ctrl+Enter or Alt+Enter to generate)",
                  elem_classes=["prompt"],
              )
              self.prompt_img = gr.File(
                  label="",
                  elem_id=f"{self.id_part}_prompt_image",
                  file_count="single",
                  type="binary",
                  visible=False,
              )
  
          with gr.Row(
              elem_id=f"{self.id_part}_neg_prompt_row",
              elem_classes=["prompt-row"],
          ):
              self.negative_prompt = gr.Textbox(
                  label="Negative prompt",
                  elem_id=f"{self.id_part}_neg_prompt",
                  show_label=False,
                  lines=3,
                  placeholder="Negative prompt (press Ctrl+Enter or Alt+Enter to generate)",
                  elem_classes=["prompt"],
              )
  
      self.prompt_img.change(
          fn=modules.images.image_data,
          inputs=[self.prompt_img],
          outputs=[self.prompt, self.prompt_img],
          show_progress=False,
      )
  
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 5 for calling the Toprow obj's underlying member method code with example usage: obj.create_prompts() without return types