---
title: Gaia Chat
emoji: đź’¬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
license: mit
---
### Choisir la langue : [Français](#français) | [English](#english)
## Français
## Description
Gaia Chat est un exemple de chatbot utilisant [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), et l'[API d'inférence de Hugging Face](https://huggingface.co/docs/api-inference/index). Ce projet montre comment créer un chatbot interactif en utilisant ces outils.
## Prérequis
- Python 3.6 ou supérieur
- Gradio
- Chardet
## Installation
### 1. Installer Python
Assurez-vous que Python est installé.
```sh
python --version
```
1. Rendez-vous sur le site officiel de Python : [https://www.python.org/downloads/](https://www.python.org/downloads/)
2. Vérifiez l’installation avec la commande :
```sh
python --version
```
### 2. Installer les dépendances
Installez `Gradio` :
```sh
pip install gradio
```
Installez `Chardet` :
```sh
pip install chardet
```
### 5. Gener un Access token sur Hugging Face
Rendez-vous sur votre profil Hugging Face pour genenez votre Access Token : [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
### 4. Lancer l'application
Exécutez la commande suivante pour démarrer Gaia Chat :
```sh
python app.py
```
Une fois l'application lancée, ouvrez votre navigateur et accédez à l'URL indiquée dans le terminal pour interagir avec le chatbot.
---
## English
## Description
Gaia Chat is an example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and l '[Hugging Face Inference API](https://huggingface.co/docs/api-inference/index). This project shows how to create an interactive chatbot using these tools.
## prerequisites
- Python 3.6
- Gradio
- Chardet
## Facilities
### 1. Python install
Make sure Python is installed.
```sh
python --version
```
1. Go to the official Python website: [https://www.python.org/downloads/](https://www.python.org/downloads/)
2. Verify the installation with the command:
```sh
python --version
```
### 2. Install dependencies
Install `Gradio` :
```sh
pip install gradio
```
Install `Chardet`
```sh
pip install chardet
```
### 5. Generate Access Token on Hugging Face
Go to your Hugging Face profile to generate your access token: [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
### 4. Launch the application
Run the following command to start Gaia Chat:
```sh
python app.py
```
Once the application is launched, open your browser and navigate to the URL given in the terminal to interact with the chatbot.