Create Gemini Chatbot

Поделиться
HTML-код
  • Опубликовано: 8 июн 2024
  • Last week Google shipped the first version of its Gemini large language model and made APIs available to developers. In this post we'll build a fully functional Gemini Chatbot using Streamlit!
    This video is a walk through of the content in my blog post:
    robkerr.ai/how-to-create-a-go...
    0:00 Introduction
    1:05 Anaconda
    1:21 Install Dependencies
    2:43 Initialize Gemini SDK
    3:05 Create History Object
    4:36 Create user prompt in UI
    6:17 Run the Bot
  • НаукаНаука

Комментарии • 11

  • @amethyst1044
    @amethyst1044 5 месяцев назад

    Very helpful video, thank you !

    • @robkerrai
      @robkerrai  5 месяцев назад

      Glad it was helpful!

  • @gabscar1
    @gabscar1 4 месяца назад +1

    Nice video, thanks! Just wondering if there is a way for the model to ingest user data: pdf, spreadsheets, pictures, etc?

    • @robkerrai
      @robkerrai  3 месяца назад

      Image attachments are supported by the API when formulating a prompt, but I don't see support for documents like PDFs and spreadsheets int he docs.

  • @ApoorvKhandelwal
    @ApoorvKhandelwal 5 месяцев назад

    Kindly make a video to deploy this code on a server like vercel or cloudflare

    • @robkerrai
      @robkerrai  5 месяцев назад +1

      I have a post on my blog for how to deploy a Streamlit app to a docker container. This technique would apply to this scenario as well.
      robkerr.ai/publish-streamlit-app-docker-azure-container/
      Thanks!

  • @609rohith4
    @609rohith4 4 месяца назад

    HI SIR ,WHEN WE ENTER 1 IN INPUT IT GIVING ERROR HOW TO RESOLVE IT

    • @robkerrai
      @robkerrai  3 месяца назад

      Hard to say from the information you posted. Make sure to obtain a Gemini key from Google--that would be the most likely reason for a request not succeeding.

  • @jyhdjhyjdhjyj5058
    @jyhdjhyjdhjyj5058 5 месяцев назад

    can you github that code?

    • @robkerrai
      @robkerrai  5 месяцев назад

      The code is at the blog post link (see link in the description). Thanks!

    • @jyhdjhyjdhjyj5058
      @jyhdjhyjdhjyj5058 5 месяцев назад

      @@robkerrai thank you!