John6666 commited on
Commit
8ca7ab7
1 Parent(s): fd8a02a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -144,7 +144,7 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True, css=css) as app:
144
  v2_copy = gr.Button(value="Copy to clipboard", size="sm", interactive=False, visible=False)
145
  tagger_algorithms = gr.CheckboxGroup(["Use WD Tagger", "Use CogFlorence-2.1-Large", "Use Florence-2-Flux"], label="Algorithms", value=["Use WD Tagger"])
146
  tagger_generate_from_image = gr.Button(value="Generate Prompt from Image")
147
- prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
148
  with gr.Column(scale=1, elem_id="gen_column"):
149
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
150
  with gr.Row():
@@ -195,7 +195,7 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True, css=css) as app:
195
  with gr.Row():
196
  lora_repo[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Repo", choices=get_all_lora_tupled_list(), info="Input LoRA Repo ID", value="", allow_custom_value=True)
197
  lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
198
- lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", value="")
199
  lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-2, maximum=2, step=0.01, value=1.00)
200
  with gr.Row():
201
  lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
 
144
  v2_copy = gr.Button(value="Copy to clipboard", size="sm", interactive=False, visible=False)
145
  tagger_algorithms = gr.CheckboxGroup(["Use WD Tagger", "Use CogFlorence-2.1-Large", "Use Florence-2-Flux"], label="Algorithms", value=["Use WD Tagger"])
146
  tagger_generate_from_image = gr.Button(value="Generate Prompt from Image")
147
+ prompt = gr.Textbox(label="Prompt", lines=1, max_lines=8, placeholder="Type a prompt")
148
  with gr.Column(scale=1, elem_id="gen_column"):
149
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
150
  with gr.Row():
 
195
  with gr.Row():
196
  lora_repo[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Repo", choices=get_all_lora_tupled_list(), info="Input LoRA Repo ID", value="", allow_custom_value=True)
197
  lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
198
+ lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", lines=1, max_lines=4, value="")
199
  lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-2, maximum=2, step=0.01, value=1.00)
200
  with gr.Row():
201
  lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)