Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -7,7 +7,8 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
7 |
from PyPDF2 import PdfReader
|
8 |
from fastapi import Depends
|
9 |
#在FastAPI中,Depends()函数用于声明依赖项
|
10 |
-
|
|
|
11 |
from langchain.chains.question_answering import load_qa_chain
|
12 |
from langchain import PromptTemplate, LLMChain
|
13 |
from langchain import HuggingFaceHub
|
|
|
7 |
from PyPDF2 import PdfReader
|
8 |
from fastapi import Depends
|
9 |
#在FastAPI中,Depends()函数用于声明依赖项
|
10 |
+
from huggingface_hub import InferenceClient
|
11 |
+
import numpy as np
|
12 |
from langchain.chains.question_answering import load_qa_chain
|
13 |
from langchain import PromptTemplate, LLMChain
|
14 |
from langchain import HuggingFaceHub
|