Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,10 +28,11 @@ from langchain.prompts.prompt import PromptTemplate
|
|
28 |
from langchain.prompts.chat import ChatPromptTemplate, SystemMessagePromptTemplate
|
29 |
from langchain.prompts import SystemMessagePromptTemplate, HumanMessagePromptTemplate, ChatPromptTemplate, MessagesPlaceholder
|
30 |
from langchain.document_loaders import PyPDFDirectoryLoader
|
31 |
-
|
|
|
32 |
from langchain_community.llms import HuggingFaceHub
|
|
|
33 |
|
34 |
-
from pydantic import BaseModel
|
35 |
import shutil
|
36 |
|
37 |
|
|
|
28 |
from langchain.prompts.chat import ChatPromptTemplate, SystemMessagePromptTemplate
|
29 |
from langchain.prompts import SystemMessagePromptTemplate, HumanMessagePromptTemplate, ChatPromptTemplate, MessagesPlaceholder
|
30 |
from langchain.document_loaders import PyPDFDirectoryLoader
|
31 |
+
from pydantic import BaseModel, Field
|
32 |
+
from langchain.output_parsers import PydanticOutputParser
|
33 |
from langchain_community.llms import HuggingFaceHub
|
34 |
+
from langchain_community.document_loaders import WebBaseLoader
|
35 |
|
|
|
36 |
import shutil
|
37 |
|
38 |
|