Skip to content

Commit 619a951

Browse files
authored
PaliGemma docstring fix (#1651)
Missing quote leads to a rendering error on keras.io
1 parent 12e3e99 commit 619a951

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

keras_nlp/src/models/pali_gemma/pali_gemma_causal_lm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class PaliGemmaCausalLM(CausalLM):
5555
```python
5656
image = np.random.rand(224, 224, 3)
5757
pali_gemma_lm = keras_nlp.models.PaliGemmaCausalLM.from_preset(
58-
"pali_gemma_pt_224")
58+
"pali_gemma_3b_mix_224"
59+
)
5960
pali_gemma_lm.generate(
6061
{
6162
"images": image,
@@ -67,7 +68,7 @@ class PaliGemmaCausalLM(CausalLM):
6768
pali_gemma_lm.generate(
6869
{
6970
"images": [image, image],
70-
"text": ["answer en where is the cow standing?\n", "caption en\n]
71+
"text": ["answer en where is the cow standing?\n", "caption en\n"]
7172
}
7273
)
7374
```
@@ -84,7 +85,7 @@ class PaliGemmaCausalLM(CausalLM):
8485
}
8586
8687
pali_gemma_lm = keras_nlp.models.PaliGemmaCausalLM.from_preset(
87-
"pali_gemma_pt_224",
88+
"pali_gemma_3b_mix_224",
8889
preprocessor=None,
8990
)
9091
pali_gemma_lm.generate(inputs)

0 commit comments

Comments
 (0)