Instructions to use isatis/kw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use isatis/kw with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("isatis/kw", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Push to hf
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -279,7 +279,7 @@ class EndpointHandler:
|
|
| 279 |
|
| 280 |
print(self.inference_progress)
|
| 281 |
|
| 282 |
-
def check_progress(self, request_id: str) ->
|
| 283 |
progress = self.inference_progress.get(request_id, 0)
|
| 284 |
latest_image = self.inference_images.get(request_id, None)
|
| 285 |
|
|
|
|
| 279 |
|
| 280 |
print(self.inference_progress)
|
| 281 |
|
| 282 |
+
def check_progress(self, request_id: str) -> Dict[str, Union[str, float]]:
|
| 283 |
progress = self.inference_progress.get(request_id, 0)
|
| 284 |
latest_image = self.inference_images.get(request_id, None)
|
| 285 |
|