multimodalart HF Staff commited on
Commit
3a3f773
·
verified ·
1 Parent(s): dabc52e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -282,7 +282,7 @@ def add_custom_lora(custom_lora):
282
 
283
  return gr.update(visible=True, value=card), gr.update(visible=True), gr.Gallery(selected_index=None), f"Custom: {path}", existing_item_index, trigger_word
284
  except Exception as e:
285
- gr.Warning(f"Invalid LoRA: either you entered an invalid link, or a non-FLUX LoRA")
286
  return gr.update(visible=True, value=f"Invalid LoRA: either you entered an invalid link, a non-FLUX LoRA"), gr.update(visible=True), gr.update(), "", None, ""
287
  else:
288
  return gr.update(visible=False), gr.update(visible=False), gr.update(), "", None, ""
 
282
 
283
  return gr.update(visible=True, value=card), gr.update(visible=True), gr.Gallery(selected_index=None), f"Custom: {path}", existing_item_index, trigger_word
284
  except Exception as e:
285
+ gr.Warning(f"Invalid LoRA: either you entered an invalid link, or a non-FLUX LoRA, this was the issue: {e}")
286
  return gr.update(visible=True, value=f"Invalid LoRA: either you entered an invalid link, a non-FLUX LoRA"), gr.update(visible=True), gr.update(), "", None, ""
287
  else:
288
  return gr.update(visible=False), gr.update(visible=False), gr.update(), "", None, ""