You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to upload a PDF and trying to get a summary of it.
Unsupported MIME type: application/pdf
sample_file = genai.upload_file(path="test.pdf",
display_name="Test")
model = genai.GenerativeModel(model_name="models/gemini-1.5-pro-latest")
response = model.generate_content(["Generate a summary of the document", sample_file])
print(response.text)
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to upload a PDF and trying to get a summary of it.
Unsupported MIME type: application/pdf
The text was updated successfully, but these errors were encountered: