Skip to content

Commit a1e4e16

Browse files
Update tutorial comments in class GenerativeModel (#116)
* Update comments in class GenerativeModel * typo --------- Co-authored-by: Mark Daoust <[email protected]>
1 parent b23546f commit a1e4e16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/generativeai/generative_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ class GenerativeModel:
122122
>>> genai.configure(api_key='YOUR_API_KEY')
123123
>>> model = genai.GenerativeModel('models/gemini-pro')
124124
>>> result = model.generate_content('Tell me a story about a magic backpack')
125-
>>> response.text
125+
>>> result.text
126126
"In the quaint little town of Lakeside, there lived a young girl named Lily..."
127127
128128
Multimodal input:
129129
130130
>>> model = genai.GenerativeModel('models/gemini-pro')
131131
>>> result = model.generate_content([
132132
... "Give me a recipe for these:", PIL.Image.open('scones.jpeg')])
133-
>>> response.text
133+
>>> result.text
134134
"**Blueberry Scones** ..."
135135
136136
Multi-turn conversation:

0 commit comments

Comments
 (0)