Spaces:
Running
on
Zero
Running
on
Zero
Update inferencer.py
Browse files- inferencer.py +1 -1
inferencer.py
CHANGED
@@ -268,7 +268,7 @@ class UniPicV2Inferencer:
|
|
268 |
width = width or self.image_size
|
269 |
|
270 |
prompt = "Generate an image: " + prompt
|
271 |
-
negative_prompt = "Generate an image: " + negative_prompt
|
272 |
inputs = self._prepare_text_inputs(prompt, negative_prompt)
|
273 |
num_queries = self.conditioner.config.num_queries
|
274 |
embeds = self._process_inputs(inputs, num_queries)
|
|
|
268 |
width = width or self.image_size
|
269 |
|
270 |
prompt = "Generate an image: " + prompt
|
271 |
+
negative_prompt = "Generate an image: " + negative_prompt if negative_prompt else self.default_negative_prompt
|
272 |
inputs = self._prepare_text_inputs(prompt, negative_prompt)
|
273 |
num_queries = self.conditioner.config.num_queries
|
274 |
embeds = self._process_inputs(inputs, num_queries)
|