Skip to content

Commit

Permalink
remove dependency import
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Dec 28, 2024
1 parent a0ac379 commit afac08d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cookbook/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from django_scopes import scopes_disabled
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter, extend_schema, extend_schema_view, OpenApiExample, inline_serializer
from google import generativeai
from icalendar import Calendar, Event
from oauth2_provider.models import AccessToken
from recipe_scrapers import scrape_html
Expand Down Expand Up @@ -1807,7 +1806,7 @@ def post(self, request, *args, **kwargs):
"""
serializer = ImportImageSerializer(data=request.data, partial=True)
if serializer.is_valid():
generativeai.configure(api_key=GOOGLE_AI_API_KEY)
#generativeai.configure(api_key=GOOGLE_AI_API_KEY)

# model = generativeai.GenerativeModel('gemini-1.5-flash-latest')
# img = PIL.Image.open('')
Expand Down

0 comments on commit afac08d

Please sign in to comment.