Spaces:
Paused
Paused
app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,13 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from langchain.embeddings import HuggingFaceEmbeddings
|
4 |
from langchain.vectorstores import Chroma
|
5 |
-
from
|
6 |
from langchain.chains import RetrievalQA
|
7 |
from transformers import AutoConfig, AutoTokenizer, pipeline, AutoModelForCausalLM
|
8 |
from langchain_community.document_loaders import DirectoryLoader
|
9 |
import torch
|
10 |
import re
|
11 |
import transformers
|
12 |
-
import spaces
|
13 |
from urllib.parse import urlencode
|
14 |
|
15 |
# Initialize embeddings and ChromaDB
|
|
|
2 |
import gradio as gr
|
3 |
from langchain.embeddings import HuggingFaceEmbeddings
|
4 |
from langchain.vectorstores import Chroma
|
5 |
+
from langchain.llms import HuggingFacePipeline
|
6 |
from langchain.chains import RetrievalQA
|
7 |
from transformers import AutoConfig, AutoTokenizer, pipeline, AutoModelForCausalLM
|
8 |
from langchain_community.document_loaders import DirectoryLoader
|
9 |
import torch
|
10 |
import re
|
11 |
import transformers
|
|
|
12 |
from urllib.parse import urlencode
|
13 |
|
14 |
# Initialize embeddings and ChromaDB
|