anzorq commited on
Commit
8a39b6e
1 Parent(s): 740784e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -171,8 +171,8 @@ def process_image(img, width, height):
171
  def inference_image(model_path, prompt, mode, *args, **kwargs):
172
  print(f"{datetime.datetime.now()} {mode}, model: {model_path}")
173
  global pipe
174
- load_model(pipe, model_path, mode)
175
- prompt = current_model.prefix + prompt
176
  result = pipe(
177
  prompt,
178
  *args,
 
171
  def inference_image(model_path, prompt, mode, *args, **kwargs):
172
  print(f"{datetime.datetime.now()} {mode}, model: {model_path}")
173
  global pipe
174
+ load_model(model_path, mode)
175
+ prompt = current_model.prefix + prompt3
176
  result = pipe(
177
  prompt,
178
  *args,