Skip to content

shaman-004/ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini Bot with Streamlit

This project demonstrates how to integrate a Gemini model using the Gemini API into a Streamlit application. This bot allows users to input queries and receive responses generated by the Gemini model.

Table of Contents

1.Introduction
2.Prerequisites
3.Installation
4.Configuration
5.Running the Application
6.Usage
7.Project Structure
8.Contributing
9.License
This project provides a simple interface to interact with a Gemini model using Streamlit. Users can input queries and get responses in real-time, showcasing the capabilities of the Gemini API.

Prerequisites

Before you begin, ensure you have met the following requirements:

Python 3.7 or higher Streamlit An API key for the Gemini API (or similar service) Installation Clone the repository:

sh

git clone https://github.com/your-username/gemini-bot-streamlit.git
cd gemini-bot-streamlit

Create a virtual environment and activate it:

sh

python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`

Install the required packages:

sh

pip install -r requirements.txt

Configuration:

Obtain your API key from the Gemini API provider.

Create a file named .env in the root directory of the project and add your API key to env
GEMINI_API_KEY=your_api_key_here

Running the Application: To start the Streamlit application, run:

sh

streamlit run app.py

This command will launch the Streamlit server and open the application in your web browser.

app.py: The main Streamlit application file.
requirements.txt: The list of dependencies required for the project.
.env: File containing your API key.

Contributing:

Contributions are welcome! Please open an issue or submit a pull request for any improvements or additions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages