fffiloni commited on
Commit
66af8e6
1 Parent(s): 3073f7f

fix model_name wrong variable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def infer(use_custom_model, model_name, custom_lora_weight, image_in, prompt, ne
82
 
83
  if use_custom_model:
84
 
85
- if custom_model == "":
86
  raise gr.Error("you forgot to set a custom model name.")
87
 
88
  custom_model = model_name
 
82
 
83
  if use_custom_model:
84
 
85
+ if model_name == "":
86
  raise gr.Error("you forgot to set a custom model name.")
87
 
88
  custom_model = model_name