Tkinter OpenAI Image Generator App - Modern Tkinter GUI AI App [tutorial for beginners]

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • With Python, Tkinter, and the OpenAI DALL-E2 API, create an Image Generator app. This tutorial is beginner-friendly.
    Learn Tkinter and Tkinter for GUI design. Learn how to use the DALL-E 2 API from OpenAI.
    In this tutorial, you will:
    - Learn how to setup an OpenAI account
    - Get your OpenAI API key
    - Install the Python OpenAI library
    - Use Python to talk to OpenAI DALL-E 2
    - Learn about Tkinter and Customtkinter
    - Install Customtkinter
    - Use labels, buttons, entries in Tkinter
    - Make an interface with Customtkinter
    Source code: github.com/codefirstio/tkinte...
    Timestamps:
    00:00 Introduction and demo
    01:08 Getting and storing your OpenAI API Key
    02:00 Interacting with the OpenAI DALL-E 2 API with Python
    05:52 Building the Customtkinter interface
    17:20 Connecting the interface and OpenAI DALL-E 2
    22:54 Creating the images slideshow in Tkinter
    Socials:
    My email: code.first.io@gmail.com
    Tiktok: / hala.codes
    *************
    *Tags*
    Modern Tkinter
    Modern Python GUI
    Modern GUI Python
    Customtkinter
    Tkinter tutorial
    Tkinter GUI tutorial
    GUI tutorial Python
    GUI Project Python
    Graphical User Interface Python
    Python tutorial
    Tkinter widgets
    OpenAI
    Python OpenAI Images
    Python OpenAI DALL-E 2 API
    OpenAI API
    OpenAI API Python
  • Věda a technologie

Komentáře • 35

  • @hoangng84
    @hoangng84 Před rokem +3

    I love watching stuff like this one because it really helps new people to put their just-learned skills into practice. There are heaps and heaps of videos and courses about fundamental things such as OOP, Python, and JS, you name them, but there are few practical tutorials to help learners do real projects. New technical CZcamsrs might need to do something like what you are doing that would be very attractive.

  • @tomschimansky6668
    @tomschimansky6668 Před rokem +1

    Great tutorial with easy explanations!

  • @Blonar257
    @Blonar257 Před rokem

    Really nice tutorial. Very helpfull for someone like me. I just started learning Python 2 months ago and ich can follow without problems. Greetings from germany

  • @rustcohle9134
    @rustcohle9134 Před 3 měsíci

    wonderful example and nice tutorials. thank you soo much

  • @Coding_and_Gaming
    @Coding_and_Gaming Před rokem +1

    Very good project thanks for sharing.

  • @odivergente388
    @odivergente388 Před rokem

    Hala, you are the best!!! 🤩

  • @tecnom7133
    @tecnom7133 Před 10 měsíci

    Just amazing,Thanks

  • @user-xn5ki7nc2y
    @user-xn5ki7nc2y Před 4 měsíci

    just what i needed thanks

  • @VibeLife-vr4me
    @VibeLife-vr4me Před 2 měsíci

    Amazing!
    Thank you my love😀🥰

  • @carstenjensen3123
    @carstenjensen3123 Před rokem

    Brilliant!

  • @osacaos
    @osacaos Před rokem

    you are awesome tanks

  • @namia8509
    @namia8509 Před 8 měsíci

    I love your vidoe

  • @itsme9877
    @itsme9877 Před 3 měsíci

    Does it need GPU to run or is it cpu friendly and quick??
    Cz i followed the other video that used stable diffusion model wherein gpu played way too important role.. Doin it wth cpu was takin 1.5hr to gen 1 image😢😢so please let me know...

  • @lokmanturkmen8964
    @lokmanturkmen8964 Před rokem

    hey Hala can you show us how to create executable file and setup.exe files for tkinter projects with customtkinter in it.

  • @AkhtarReviews
    @AkhtarReviews Před rokem +1

    That's really cool! And I have a question. We're using environment variable for api key. Now I want to create exe file using pyinstaller. Will it include the api key itself? Or do we have to mention some path for additional file/folder?

  • @arshdeepsingh6570
    @arshdeepsingh6570 Před rokem +1

    Can you share your vscode theme? It looks very beautiful

  • @TheWolf1340
    @TheWolf1340 Před 6 měsíci +1

    hello. it seems that this is not working with openai versions greater than 0.28 (in exemple: module 'openai' has no attribute 'Image' error). I cannot install 0.28 version, do you know what I can change in the python script?

    • @divyasohni1267
      @divyasohni1267 Před 5 měsíci

      If you got to know let me also clear this error

  • @SuperNova-Tales
    @SuperNova-Tales Před 9 měsíci +1

    Thanks very much for good video.
    But I ran into this error "InvalidRequestError: Billing hard limit has been reached'' while trying to get the image url.
    It has made me wonder if the openai key is free or for purchasing.
    help me with this?

    • @obsidian2172
      @obsidian2172 Před 8 měsíci

      You need to add credits to your platforms account in order to use text to image, they will charge your account per image generated, you can create a new account and get 5$ dollar credit, but for the most part its not free unfortunately

  • @denhendra9360
    @denhendra9360 Před 8 měsíci

    please make side menu/tab

  • @nisidabay
    @nisidabay Před rokem

    It looks like the API-Key doesn't work for premium users.

  • @its_code
    @its_code Před rokem

    ❤❤ nice 👌 profile pic

  • @mraghul7418
    @mraghul7418 Před rokem

    How to get the api request free, It asks 5$ 😢

  • @gopher_7
    @gopher_7 Před 11 měsíci +1

    Mmm, cool to be in Russia when you have OpenAI blocked and can't get an API key, very cool

  • @timbang9231
    @timbang9231 Před rokem

    not working

  • @mahabubalam6253
    @mahabubalam6253 Před rokem

    I Love You...............?.......................................................................................................Tkinter...................

  • @WinnerSingh
    @WinnerSingh Před rokem

    If you apply to BMW your salary would be 1 lakh euro a year

  • @divyasohni1267
    @divyasohni1267 Před 5 měsíci

    billing hard limit has been reached error did not solved i tried a lot but still , why you made projects like that i am trying my best to learn everything from your this video but got an error at the last which is not going to solve in any ways i tried it all i am not following your videos from now and even i unsubscribe you

  • @divyasohni1267
    @divyasohni1267 Před 5 měsíci

    guys do not follow or see this video this is of no use totally time waste i swear

  • @psychoboy8172
    @psychoboy8172 Před 10 měsíci +1

    openai.error.InvalidRequestError: Billing hard limit has been reached