nightfury commited on
Commit
11a4786
Β·
verified Β·
1 Parent(s): 1afde00

Update appChatbot.py

Browse files
Files changed (1) hide show
  1. appChatbot.py +7 -0
appChatbot.py CHANGED
@@ -1,8 +1,15 @@
1
  import os
 
2
 
3
  import gradio as gr
4
  from huggingface_hub import InferenceClient
5
 
 
 
 
 
 
 
6
  """
7
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
8
  """
 
1
  import os
2
+ import json
3
 
4
  import gradio as gr
5
  from huggingface_hub import InferenceClient
6
 
7
+ from langchain.text_splitter import CharacterTextSplitter
8
+ from langchain.embeddings import OpenAIEmbeddings
9
+ from langchain.vectorstores import Chroma
10
+ from langchain.document_loaders import PyPDFLoader
11
+ from fastapi.encoders import jsonable_encoder
12
+
13
  """
14
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
15
  """