Update appChatbot.py
Browse files- 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 |
"""
|