Skip to content

Commit

Permalink
PaliGemma docstring fix (#1651)
Browse files Browse the repository at this point in the history
Missing quote leads to a rendering error on keras.io
  • Loading branch information
mattdangerw authored May 24, 2024
1 parent 12e3e99 commit 619a951
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keras_nlp/src/models/pali_gemma/pali_gemma_causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class PaliGemmaCausalLM(CausalLM):
```python
image = np.random.rand(224, 224, 3)
pali_gemma_lm = keras_nlp.models.PaliGemmaCausalLM.from_preset(
"pali_gemma_pt_224")
"pali_gemma_3b_mix_224"
)
pali_gemma_lm.generate(
{
"images": image,
Expand All @@ -67,7 +68,7 @@ class PaliGemmaCausalLM(CausalLM):
pali_gemma_lm.generate(
{
"images": [image, image],
"text": ["answer en where is the cow standing?\n", "caption en\n]
"text": ["answer en where is the cow standing?\n", "caption en\n"]
}
)
```
Expand All @@ -84,7 +85,7 @@ class PaliGemmaCausalLM(CausalLM):
}
pali_gemma_lm = keras_nlp.models.PaliGemmaCausalLM.from_preset(
"pali_gemma_pt_224",
"pali_gemma_3b_mix_224",
preprocessor=None,
)
pali_gemma_lm.generate(inputs)
Expand Down

0 comments on commit 619a951

Please sign in to comment.