Skip to content

GenAI Google API with Streamlit is a Chatbot connection using Gemini Pro API

Notifications You must be signed in to change notification settings

peteciank/GenAI_Google_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Gemini-ChatBot with Streamlit and GenAI Google API 🤖

Gemini-ChatBot is an interactive chatbot built using Streamlit and the GenAI Google API. This chatbot allows users to converse with an AI-powered assistant, powered by Google's generative AI technology.

Introduction🚀

Chatbots have become increasingly popular in various applications, including customer service, virtual assistants, and entertainment. With advancements in AI and natural language processing (NLP), creating chatbots has become more accessible.

This project demonstrates how to leverage the GenAI Google API and Streamlit to build an interactive chatbot. Streamlit is a popular Python library used for creating web applications with simple Python scripts. GenAI Google API provides powerful generative AI capabilities, allowing the chatbot to generate responses based on user input.

Features 💡

  • Text Input: Users can input text messages to interact with the chatbot.
  • Image Input: Users can upload images and ask questions. (Note: This feature is not fully supported yet.)
  • Interactive Interface: Streamlit provides an intuitive and interactive interface for users to engage with the chatbot.
  • Safety Settings: The chatbot incorporates safety settings to filter out harmful or inappropriate content.

Getting Started 🏁

To run Gemini-ChatBot locally, follow these steps:

  1. Install Streamlit and required dependencies.
  2. Obtain a Google API key and configure GenAI.
  3. Run the Streamlit app using the provided code.

Usage 📋

To run the chatbot:

  1. Clone this repository to your local machine.
  2. Install the required dependencies using pip install -r requirements.txt.
  3. Set up your Google API key and Streamlit secrets.
  4. Run the Streamlit app using streamlit run app.py.
  5. Interact with the chatbot through the web interface.

Example

Here's how you can use Gemini-ChatBot:

  1. Select "Text" input type.
  2. Type your question: "What is the capital of France?"
  3. Wait for the AI assistant to respond with the answer.

Technologies Used

  • Streamlit: For building the interactive web application.
  • GenAI Google API: For leveraging Google's generative AI technology.
  • Python: Programming language used for development.

About the Author

Gemini-ChatBot was created by Pete Ciank, a passionate developer and AI enthusiast. Pete enjoys exploring new technologies and building innovative projects.

Future Enhancements

  • Integration with additional AI models for enhanced conversational capabilities.
  • Improved handling of image input for more accurate responses.
  • Support for voice input and output.

Feedback and Contributions

Feedback and contributions are welcome! If you have any suggestions for improving Gemini-ChatBot or would like to contribute to its development, feel free to reach out to the author.

Conclusion

Gemini-ChatBot offers an engaging and interactive experience for users to interact with AI technology. With its intuitive interface and powerful capabilities, Gemini-ChatBot is a valuable tool for exploring the possibilities of conversational AI.

🤖 Happy chatting with Gemini-ChatBot! 🚀

About

GenAI Google API with Streamlit is a Chatbot connection using Gemini Pro API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages