diff --git a/backend/main.py b/backend/main.py index 988d31b..706a763 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1,7 +1,7 @@ import asyncio import inspect import traceback -from datetime import datetime, timedelta +from datetime import datetime from pathlib import Path from typing import List from uuid import uuid4 diff --git a/frontend/lib/backend.py b/frontend/lib/backend.py index 8df7e5d..2e4b063 100644 --- a/frontend/lib/backend.py +++ b/frontend/lib/backend.py @@ -1,5 +1,6 @@ import streamlit as st + def query(verb: str, url: str, **kwargs): session = st.session_state.get("session") response = getattr(session, verb)(url, **kwargs) @@ -8,5 +9,5 @@ def query(verb: str, url: str, **kwargs): st.session_state["session"] = None st.session_state["email"] = None st.rerun() - - return response \ No newline at end of file + + return response diff --git a/frontend/lib/chat.py b/frontend/lib/chat.py index c9b2fe3..cba9621 100644 --- a/frontend/lib/chat.py +++ b/frontend/lib/chat.py @@ -5,7 +5,6 @@ import streamlit as st from streamlit_feedback import streamlit_feedback -from frontend.lib.auth import auth from frontend.lib.backend import query diff --git a/frontend/lib/sidebar.py b/frontend/lib/sidebar.py index 354d6c6..f5a1961 100644 --- a/frontend/lib/sidebar.py +++ b/frontend/lib/sidebar.py @@ -2,8 +2,8 @@ import humanize import streamlit as st -from frontend.lib.backend import query +from frontend.lib.backend import query from frontend.lib.chat import Message @@ -40,4 +40,3 @@ def list_chats(): def get_chat(chat_id: str): return query("get", f"/chat/{chat_id}").json() -