File size: 876 Bytes
6c2ad63
faaf179
ab87acb
3b6db3d
 
6c2ad63
faaf179
6c2ad63
 
 
ab87acb
6c2ad63
 
3b6db3d
 
6c2ad63
3b6db3d
 
 
 
 
 
 
 
 
 
 
8e003ad
 
 
3b6db3d
 
 
8e003ad
3b6db3d
 
 
 
 
 
 
 
 
ab87acb
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
---
title: PDF Chatbot
emoji: 👁
colorFrom: red
colorTo: purple
sdk: gradio
sdk_version: 5.6.0
app_file: app.py
pinned: false
license: mit
short_description: Example of chatbot with RAG from multiples files
---

# Run on a space

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Simply push your code on a huggingface space.

# Run locally

You must have python (3.8)[https://www.python.org/downloads/].

Check https://www.gradio.app/guides/quickstart for more details about Gradio.

## Install dependencies

`python -m venv .venv`

`source .venv/bin/activate`

`pip install -r requirements.txt`

## Add Mistral API Key to your environement variables or in .env locally

in `~/.profile` or `~/.bashrc`

`export MISTRAL_API_KEY=YOUR_API_KEY`

## Run your code

`python3 app.py`

## Open your browser to `http://127.0.0.1:7860`