Skip to content

Add new example #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

SonjeVilas
Copy link

@SonjeVilas SonjeVilas commented Apr 3, 2025

Google Gemini Flash 2.0 - Native Image Output Demonstration.

  • This notebook demonstrates the capabilities of Google's Gemini-2.0-Flash-Exp model.
  • Particularly its native image output feature.
  • The model can generate images.
  • Refine them using natural language commands.
  • Seamlessly integrate text and images.

Copy link

google-cla bot commented Apr 3, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:examples Issues/PR referencing examples folder labels Apr 3, 2025
@@ -0,0 +1,422 @@
{
Copy link
Contributor

@omkenge omkenge Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #9.    model_id = "gemini-2.0-flash-exp"

No Need to Define alreay we can use MODEL_ID as a variable


Reply via ReviewNB

@@ -0,0 +1,422 @@
{
Copy link
Contributor

@omkenge omkenge Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #10.    model_id = "gemini-2.0-flash-exp"

Same here no need to define this variale


Reply via ReviewNB

@@ -0,0 +1,422 @@
{
Copy link
Contributor

@omkenge omkenge Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #11.        model=model_id,

Use MODEL_ID


Reply via ReviewNB

@@ -0,0 +1,422 @@
{
Copy link
Contributor

@omkenge omkenge Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #5.        model=model_id,

Use MODEL_ID


Reply via ReviewNB

@omkenge
Copy link
Contributor

omkenge commented Apr 3, 2025

@SonjeVilas Thanks for this PR There are some small comments :)
But I am not sure this example is already implemented or not

@@ -0,0 +1,422 @@
{
Copy link
Author

@SonjeVilas SonjeVilas Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #7.    client = genai.Client(api_key='XXX') # Replace 'YOUR_API_KEY' with your actual API Key.


Reply via ReviewNB

@@ -0,0 +1,422 @@
{
Copy link
Collaborator

@Giom-V Giom-V Apr 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #7.    client = genai.Client(api_key='AIzaSyAOd_2MrjXOTRq2zEjkCMGBJp7brkWbMKo') # Replace 'YOUR_API_KEY' with your actual API Key.

@SonjeVilas you must never share an API like that. Someone could reuse it and you'd pay for their usage. Quickly deactivate it in AI studio!

Really deactivate it, don't just erase it from the PR it's now in Github history so consider it share with the whole Internet!


Reply via ReviewNB

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah! already deactivated Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:examples Issues/PR referencing examples folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants