prithivMLmods commited on
Commit
655772d
1 Parent(s): 44d4f3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1119,7 +1119,7 @@ def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps
1119
  @spaces.GPU(duration=100)
1120
  def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
1121
  if selected_index is None:
1122
- raise gr.Error("You must select a LoRA before proceeding.")
1123
  selected_lora = loras[selected_index]
1124
  lora_path = selected_lora["repo"]
1125
  trigger_word = selected_lora["trigger_word"]
@@ -1279,7 +1279,7 @@ with gr.Blocks(theme="prithivMLmods/Minecraft-Theme", css=css, delete_cache=(60,
1279
  selected_index = gr.State(None)
1280
  with gr.Row():
1281
  with gr.Column(scale=3):
1282
- prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Choose the LoRA and type the prompt")
1283
  with gr.Column(scale=1, elem_id="gen_column"):
1284
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
1285
  with gr.Row():
 
1119
  @spaces.GPU(duration=100)
1120
  def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
1121
  if selected_index is None:
1122
+ raise gr.Error("You must select a LoRA before proceeding.🧨")
1123
  selected_lora = loras[selected_index]
1124
  lora_path = selected_lora["repo"]
1125
  trigger_word = selected_lora["trigger_word"]
 
1279
  selected_index = gr.State(None)
1280
  with gr.Row():
1281
  with gr.Column(scale=3):
1282
+ prompt = gr.Textbox(label="Prompt", lines=1, placeholder="⚠️choose the LoRA and type the prompt")
1283
  with gr.Column(scale=1, elem_id="gen_column"):
1284
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
1285
  with gr.Row():