Skip to content

Commit

Permalink
refacto: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisVLRT committed Jan 16, 2024
1 parent e65933f commit fb37721
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions frontend/lib/backend.py
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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

return response
1 change: 0 additions & 1 deletion frontend/lib/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 1 addition & 2 deletions frontend/lib/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -40,4 +40,3 @@ def list_chats():

def get_chat(chat_id: str):
return query("get", f"/chat/{chat_id}").json()

0 comments on commit fb37721

Please sign in to comment.