El Mehdi BELAHNECH commited on
Commit ·
0ea7e64
1
Parent(s): 51ed95f
add: index FAISS + PKL (force push via Git LFS)
Browse files- app.py +5 -3
- faiss_open_index/index.pkl +3 -0
app.py
CHANGED
|
@@ -12,6 +12,11 @@
|
|
| 12 |
import os
|
| 13 |
from dotenv import load_dotenv # charge les variables définies dans .env (clé API)
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# ------------------------------------------------------------------
|
| 16 |
# 1. Imports LangChain : LLM + chaîne de réponse
|
| 17 |
# ------------------------------------------------------------------
|
|
@@ -142,6 +147,3 @@ if __name__ == "__main__":
|
|
| 142 |
demo.launch()
|
| 143 |
|
| 144 |
|
| 145 |
-
import os, subprocess
|
| 146 |
-
if not os.path.exists("faiss_open_index/index.pkl"):
|
| 147 |
-
subprocess.run(["python", "index_open_faiss.py"], check=True)
|
|
|
|
| 12 |
import os
|
| 13 |
from dotenv import load_dotenv # charge les variables définies dans .env (clé API)
|
| 14 |
|
| 15 |
+
##
|
| 16 |
+
import os, subprocess
|
| 17 |
+
if not os.path.exists("faiss_open_index/index.pkl"):
|
| 18 |
+
subprocess.run(["python", "index_open_faiss.py"], check=True)
|
| 19 |
+
|
| 20 |
# ------------------------------------------------------------------
|
| 21 |
# 1. Imports LangChain : LLM + chaîne de réponse
|
| 22 |
# ------------------------------------------------------------------
|
|
|
|
| 147 |
demo.launch()
|
| 148 |
|
| 149 |
|
|
|
|
|
|
|
|
|
faiss_open_index/index.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b89b60797d97d77ccddf709ce64fee3bd0cebd83386a4d4ef70020f1c70cc67
|
| 3 |
+
size 342996
|