Spaces:
Runtime error
Runtime error
Fecalisboa
commited on
Commit
•
e907ad5
1
Parent(s):
0992066
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import getpass
|
4 |
-
from pathlib import Path
|
5 |
import re
|
6 |
from unidecode import unidecode
|
7 |
import chromadb
|
8 |
-
from langchain_community.vectorstores import FAISS
|
9 |
from langchain_community.document_loaders import PyPDFLoader
|
10 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
11 |
from langchain_community.vectorstores import Chroma
|
@@ -16,7 +16,6 @@ from langchain.chains import ConversationChain
|
|
16 |
from langchain.memory import ConversationBufferMemory
|
17 |
from langchain_community.llms import HuggingFaceEndpoint
|
18 |
import torch
|
19 |
-
from langchain_community.vectorstores import FAISS, ScaNN, Milvus, Chroma
|
20 |
api_token = os.getenv("HF_TOKEN")
|
21 |
|
22 |
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import getpass
|
4 |
+
from pathlib import Path
|
5 |
import re
|
6 |
from unidecode import unidecode
|
7 |
import chromadb
|
8 |
+
from langchain_community.vectorstores import FAISS, ScaNN, Milvus
|
9 |
from langchain_community.document_loaders import PyPDFLoader
|
10 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
11 |
from langchain_community.vectorstores import Chroma
|
|
|
16 |
from langchain.memory import ConversationBufferMemory
|
17 |
from langchain_community.llms import HuggingFaceEndpoint
|
18 |
import torch
|
|
|
19 |
api_token = os.getenv("HF_TOKEN")
|
20 |
|
21 |
|