File size: 2,283 Bytes
084bd69
 
 
 
 
 
7cf20bf
084bd69
 
 
 
a7790c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: 'Interactive Chat Application'
emoji: '💬'
colorFrom: 'indigo'
colorTo: 'indigo'
sdk: 'gradio'
sdk_version: '3.0.0'
app_file: 'app.py'
pinned: false
---

# 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.

## 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:
   ```bash
   git clone https://huggingface.co/your-username/your-repo-name
   cd your-repo-name
   ```

2. Install the required Python libraries:
   ```bash
   pip install -r requirements.txt
   ```

3. Launch the Application:
   ```bash
    python main.py
   ```

### Usage
Once you have completed the installation, you can start the application by running:
   ```bash
    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](LICENSE) file for details.