diff --git a/backend/src/session/file_uploads.py b/backend/src/session/file_uploads.py index e74d965a..6b0d7108 100644 --- a/backend/src/session/file_uploads.py +++ b/backend/src/session/file_uploads.py @@ -1,5 +1,4 @@ import json -from dataclasses import dataclass from typing import TypedDict, Optional import logging import redis @@ -33,8 +32,7 @@ class FileUpload(TypedDict): size: Optional[int] -@dataclass -class FileUploadReport: +class FileUploadReport(TypedDict): id: str answer: str filename: Optional[str] diff --git a/frontend/src/components/input.tsx b/frontend/src/components/input.tsx index cc22b1ae..812ab459 100644 --- a/frontend/src/components/input.tsx +++ b/frontend/src/components/input.tsx @@ -77,11 +77,11 @@ export const Input = ({ appendMessage( { id, - answer + answer, }, Role.Bot, report, - `ESG Report - ${filename}` + `ESG Report - ${filename}`, ); } catch (error) { console.error(error);