Giter VIP home page Giter VIP logo

op27 / lm-studio-gradio-chat Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 6 KB

This repository hosts a web-based chat application using LM Studio's AI models like Mistral, OpenAI, and Llama through a Gradio interface. It maintains conversation history for a continuous, coherent chat experience akin to ChatGPT or Claude.

Python 100.00%
chatbot conversation-ai gradio lm-studio machine-learning

lm-studio-gradio-chat's Introduction

LM Studio Gradio Chat

This repository contains a web-based chat application that integrates with various AI models from LM Studio, such as Mistral, OpenAI, and Llama, via a user-friendly Gradio interface. It is designed to maintain conversation history, providing a coherent and continuous AI chat experience comparable to systems like ChatGPT or Claude.

demo.mp4

Features

  • Multiple AI Model Integration: Integrates with a variety of conversational AI models hosted on LM Studio, including Mistral, OpenAI, Llama, and more, offering flexibility in choosing the AI technology.
  • Real-time Interaction: Engage with different AI models in real-time through a Gradio interface for a dynamic chat experience.
  • Contextual Conversations: Maintains a conversation history to provide context to the AI models, enabling more coherent and meaningful interactions, similar to advanced systems like ChatGPT or Claude.
  • User-Friendly Interface: Simple and intuitive UI built with Gradio, making it accessible for users with any level of technical expertise.

Installation

To get started with this project, you'll need to set up your Python environment and install the necessary dependencies.

Prerequisites

  • Python 3.8 or higher
  • Access to LM Studio with a running instance of the Mistral model

Setup

  1. Clone this repository:

    git clone https://github.com/yourusername/lm-studio-gradio-chat.git
    cd lm-studio-gradio-chat
  2. Install the required Python libraries:

    pip install gradio openai
  3. Set up your environment variables. Replace your_base_url and your_api_key with the actual values.

     export OPENAI_BASE_URL="your_base_url"
     export OPENAI_API_KEY="your_api_key"

Usage

Once you have completed the installation, you can start the application by running:

 python main.py

This will launch the Gradio interface in your default web browser, where you can interact with the Mistral model directly.

Contributing

Contributions to this project are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.