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 - Наука
Very helpful video, thank you !
Glad it was helpful!
Nice video, thanks! Just wondering if there is a way for the model to ingest user data: pdf, spreadsheets, pictures, etc?
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.
Kindly make a video to deploy this code on a server like vercel or cloudflare
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!
HI SIR ,WHEN WE ENTER 1 IN INPUT IT GIVING ERROR HOW TO RESOLVE IT
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.
can you github that code?
The code is at the blog post link (see link in the description). Thanks!
@@robkerrai thank you!