Update README.md
Browse files
README.md
CHANGED
|
@@ -35,25 +35,6 @@ It was trained on [Replicate](https://replicate.com/) using AI toolkit: https://
|
|
| 35 |
You should use `TOK` to trigger the image generation.
|
| 36 |
|
| 37 |
|
| 38 |
-
## Run this LoRA with an API using Replicate
|
| 39 |
-
|
| 40 |
-
```py
|
| 41 |
-
import replicate
|
| 42 |
-
|
| 43 |
-
input = {
|
| 44 |
-
"prompt": "TOK",
|
| 45 |
-
"lora_weights": "https://huggingface.co/codermert/bahar_fluxxxxxx/resolve/main/lora.safetensors"
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
output = replicate.run(
|
| 49 |
-
"black-forest-labs/flux-dev-lora",
|
| 50 |
-
input=input
|
| 51 |
-
)
|
| 52 |
-
for index, item in enumerate(output):
|
| 53 |
-
with open(f"output_{index}.webp", "wb") as file:
|
| 54 |
-
file.write(item.read())
|
| 55 |
-
```
|
| 56 |
-
|
| 57 |
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 58 |
|
| 59 |
```py
|
|
|
|
| 35 |
You should use `TOK` to trigger the image generation.
|
| 36 |
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 39 |
|
| 40 |
```py
|