Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ def infer_with_lora(input_image, prompt, selected_index, custom_lora, seed=42, r
|
|
| 164 |
# Add trigger word to prompt if available
|
| 165 |
trigger_word = lora_to_use.get("trigger_word", "")
|
| 166 |
if trigger_word and trigger_word not in prompt:
|
| 167 |
-
prompt = f"{trigger_word} {prompt}"
|
| 168 |
|
| 169 |
except Exception as e:
|
| 170 |
print(f"Error loading LoRA: {e}")
|
|
|
|
| 164 |
# Add trigger word to prompt if available
|
| 165 |
trigger_word = lora_to_use.get("trigger_word", "")
|
| 166 |
if trigger_word and trigger_word not in prompt:
|
| 167 |
+
prompt = f"convert the style of this portrait photo to {trigger_word} while maintaining the identity of the person. {prompt}. make sure to maintain the person's facial identity and features, while still changing the style to {trigger_word}."
|
| 168 |
|
| 169 |
except Exception as e:
|
| 170 |
print(f"Error loading LoRA: {e}")
|