multimodalart HF staff commited on
Commit
3704ad8
1 Parent(s): e57a646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -340,7 +340,8 @@ git+https://github.com/huggingface/datasets.git@3f149204a2a5948287adcade5e90707a
340
  ## - Training Status: <a href='https://huggingface.co/spaces/{username}/autotrain-{slugged_lora_name}?logs=container'>{username}/autotrain-{slugged_lora_name}</a> <small>(in the logs tab)</small>
341
  ## - Model page: <a href='https://huggingface.co/{username}/{slugged_lora_name}'>{username}/{slugged_lora_name}</a> <small>(will be available when training finishes)</small>"""
342
  else:
343
- raise gr.Error("Something went wrong. Make sure the name of your LoRA is unique and try again. Error: ", outcome.stderr)
 
344
 
345
  def calculate_price(iterations, with_prior_preservation):
346
  if(with_prior_preservation):
 
340
  ## - Training Status: <a href='https://huggingface.co/spaces/{username}/autotrain-{slugged_lora_name}?logs=container'>{username}/autotrain-{slugged_lora_name}</a> <small>(in the logs tab)</small>
341
  ## - Model page: <a href='https://huggingface.co/{username}/{slugged_lora_name}'>{username}/{slugged_lora_name}</a> <small>(will be available when training finishes)</small>"""
342
  else:
343
+ print("Error: ", outcome.stderr)
344
+ raise gr.Error("Something went wrong. Make sure the name of your LoRA is unique and try again")
345
 
346
  def calculate_price(iterations, with_prior_preservation):
347
  if(with_prior_preservation):