Skip to content

01AbhiSingh/GemLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

GemLang: Q&A Bot with Gemini Language Model GemLang is a Streamlit application that utilizes the Gemini Language Model API for question-answering. This application allows users to interactively ask questions and receive responses from the Gemini Language Model.

Installation Clone the repository: git clone https://github.com/01AbhiSingh/gemlang.git

Navigate to the project directory:

cd gemlang Install dependencies: pip install -r requirement.txt

Obtain an API key from the Gemini Language Model API and configure it in the .env file.

Run the Streamlit application:

streamlit run app.py Access the application in your web browser at http://localhost:8501.

Enter your question in the input field and click "Ask the Question".

View the response provided by the Gemini Language Model along with the chat history.

Configuration Ensure that the .env file contains the following configurations: makefile Copy code API_KEY="your-api-key" Code Structure app.py: Main application script containing the Streamlit UI and interaction logic. requirements.txt: File listing all Python dependencies required by the application. Documentation of Functions gemini_reply(question) Sends a question to the Gemini Language Model API and returns the response. Parameters: question (str): The question to be sent to the Gemini Language Model. Returns: response (str): The response from the Gemini Language Model. Example Usage python Copy code import streamlit as st

Function to interact with Gemini Language Model

def gemini_reply(question): # Implementation details... pass

Streamlit UI components and logic...

Contributing Guidelines To contribute to GemLang, please follow these guidelines: Fork the repository and create a new branch for your feature or bug fix. Ensure that your code adheres to the project's coding standards. Submit a pull request with a clear description of your changes. License This project is licensed under the MIT License.

Credits GemLang utilizes the Gemini Language Model API provided by Google GenerativeAI. Streamlit: Open-source Python framework for building web applications.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published