You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
245 B
Python
8 lines
245 B
Python
8 months ago
|
import google.generativeai as genai
|
||
|
|
||
|
genai.configure(api_key='AIzaSyAW_h8itGLwNhYTfx1EDLthhcHHlcIfs7w')
|
||
|
model = genai.GenerativeModel('gemini-pro')
|
||
|
|
||
|
response = model.generate_content("Write a story about a magic backpack.")
|
||
|
print(response.text)
|