Skip to content

Commit

Permalink
Add syntax highlighting to code blocks in README (huggingface#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosasko authored Jul 24, 2022
1 parent 343180c commit 0f8547c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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
```

Expand Down

0 comments on commit 0f8547c

Please sign in to comment.