sanjeevbora commited on
Commit
8841b3b
·
verified ·
1 Parent(s): 7880dfb
Files changed (1) hide show
  1. app.py +1 -2
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 langchain_huggingface 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
- 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