Spaces:
Sleeping
Sleeping
Florian.Moret
commited on
Commit
·
f2dd28e
1
Parent(s):
4bf8063
remove mpltlib
Browse files
app.py
CHANGED
@@ -6,16 +6,13 @@ from mistralai import Mistral
|
|
6 |
import numpy as np
|
7 |
# import fitz # PyMuPDF pour extraction PDF
|
8 |
import faiss
|
9 |
-
|
10 |
-
|
11 |
import pickle
|
12 |
-
import matplotlib.pyplot as plt
|
13 |
from mistralai import Mistral
|
14 |
from sklearn.manifold import TSNE
|
15 |
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
|
16 |
from dotenv import load_dotenv
|
17 |
|
18 |
-
MISTRAL_API_KEY = os.getenv("api_mistral")
|
19 |
model = "ministral-8b-latest" # ancien model : 'mistral-large-latest'
|
20 |
mistral_client = Mistral(api_key=MISTRAL_API_KEY)
|
21 |
MAX_TOKENS = 1500
|
|
|
6 |
import numpy as np
|
7 |
# import fitz # PyMuPDF pour extraction PDF
|
8 |
import faiss
|
|
|
|
|
9 |
import pickle
|
|
|
10 |
from mistralai import Mistral
|
11 |
from sklearn.manifold import TSNE
|
12 |
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
|
13 |
from dotenv import load_dotenv
|
14 |
|
15 |
+
MISTRAL_API_KEY = 'DFtRafUrJnASg1cqrEWNtSMKAjZT4Njp' #os.getenv("api_mistral")
|
16 |
model = "ministral-8b-latest" # ancien model : 'mistral-large-latest'
|
17 |
mistral_client = Mistral(api_key=MISTRAL_API_KEY)
|
18 |
MAX_TOKENS = 1500
|