Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -12,6 +12,8 @@ from langgraph.graph.message import AnyMessage, add_messages
|
|
12 |
from langchain_core.messages import HumanMessage, AIMessage
|
13 |
from langgraph.graph import END, StateGraph, START
|
14 |
from langgraph.checkpoint.memory import MemorySaver
|
|
|
|
|
15 |
from fastapi import FastAPI
|
16 |
from fastapi.middleware.cors import CORSMiddleware
|
17 |
from pydantic import BaseModel
|
|
|
12 |
from langchain_core.messages import HumanMessage, AIMessage
|
13 |
from langgraph.graph import END, StateGraph, START
|
14 |
from langgraph.checkpoint.memory import MemorySaver
|
15 |
+
from langchain_community.document_loaders import DirectoryLoader
|
16 |
+
from langchain_text_splitters import CharacterTextSplitter
|
17 |
from fastapi import FastAPI
|
18 |
from fastapi.middleware.cors import CORSMiddleware
|
19 |
from pydantic import BaseModel
|