Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
175 |
-
prompt = current_model.prefix +
|
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,
|