Instructions to use Texttra/Bh0r with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Texttra/Bh0r with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Texttra/Bh0r") prompt = "<lora:Bh0r:.8> Bh0r in tortoise shell, red lenses, dark-skinned woman with braids, neutral expression, wearing a black track jacket, front-facing portrait of sunglasses, flat white concrete wall background, daylight, hyper realistic, film photograph" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -39,7 +39,7 @@ class EndpointHandler:
|
|
| 39 |
|
| 40 |
image = self.pipe(
|
| 41 |
prompt,
|
| 42 |
-
num_inference_steps=
|
| 43 |
guidance_scale=7.0,
|
| 44 |
).images[0]
|
| 45 |
|
|
|
|
| 39 |
|
| 40 |
image = self.pipe(
|
| 41 |
prompt,
|
| 42 |
+
num_inference_steps=45,
|
| 43 |
guidance_scale=7.0,
|
| 44 |
).images[0]
|
| 45 |
|