From 0f8547c2af7b7fda0068583277f73818be40c3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20=C5=A0a=C5=A1ko?= Date: Sun, 24 Jul 2022 16:20:56 +0200 Subject: [PATCH] Add syntax highlighting to code blocks in README (#131) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26475b23d6..a712ec6575 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ In order to get started, we recommend taking a look at two notebooks: If you want to run the code yourself 💻, you can try out: - [Text-to-Image Latent Diffusion](https://huggingface.co/CompVis/ldm-text2im-large-256) -``` +```python # !pip install diffusers transformers from diffusers import DiffusionPipeline @@ -56,7 +56,7 @@ for idx, image in enumerate(images): image.save(f"squirrel-{idx}.png") ``` - [Unconditional Diffusion with discrete scheduler](https://huggingface.co/google/ddpm-celebahq-256) -``` +```python # !pip install diffusers from diffusers import DDPMPipeline, DDIMPipeline, PNDMPipeline @@ -120,7 +120,7 @@ The class provides functionality to compute previous image according to alpha, b ## Installation -``` +```bash pip install diffusers # should install diffusers 0.1.2 ```