iShare commited on
Commit
16370d6
1 Parent(s): 49c7d9d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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