Spaces:
Sleeping
Sleeping
File size: 350 Bytes
b1ce4f1 |
1 2 3 4 5 6 7 8 9 |
import pathlib
import textwrap
import google.generativeai as genai
def output(text):
response = model.generate_content("Summarize this and also don't make this too short "+text)
return response
GOOGLE_API_KEY="AIzaSyCgX2dUhfUNGZ1aSrjUIlXNfor1ylBdw7I"
genai.configure(api_key=GOOGLE_API_KEY)
model = genai.GenerativeModel('gemini-pro') |