🐛 fix(chat.py): add type hint to flow_data_store variable

🔥 chore(main.py): remove unused imports and variables
The `flow_data_store` variable in `chat.py` was missing a type hint, which was added to improve code readability and maintainability. In `main.py`, unused imports and variables were removed to improve code cleanliness.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-16 18:52:55 -03:00
commit b06e7a058a
2 changed files with 1 additions and 5 deletions

View file

@ -16,7 +16,7 @@ from cachetools import LRUCache
router = APIRouter(tags=["Chat"])
chat_manager = ChatManager()
flow_data_store = LRUCache(maxsize=10)
flow_data_store: LRUCache = LRUCache(maxsize=10)
@router.websocket("/chat/{client_id}")

View file

@ -1,13 +1,9 @@
import os
from typing import Optional
from fastapi import FastAPI
from fastapi.responses import FileResponse
from fastapi.middleware.cors import CORSMiddleware
from langflow.api import router
from langflow.database.base import create_db_and_tables
from pathlib import Path
def create_app():