Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vojay-dev committed May 18, 2024
1 parent 97ada3f commit b8c4f63
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ base="dark"
primaryColor="#32fcff"
backgroundColor="#23232b"
secondaryBackgroundColor="#383844"

[logger]
level = "info"
messageFormat = "%(asctime)s %(message)s"
2 changes: 1 addition & 1 deletion arctic_query_quest/arctic.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
self,
top_k: int = 60,
top_p: float = 1.0,
temperature: float = 0.85,
temperature: float = 0.8,
min_new_tokens: int = 0,
max_new_tokens: int = 7000,
presence_penalty: float = 1,
Expand Down
2 changes: 2 additions & 0 deletions arctic_query_quest/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import base64
import logging
import sys
from enum import Enum
from pathlib import Path

Expand Down
8 changes: 8 additions & 0 deletions arctic_query_quest/main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import logging
import sys

import streamlit as st

from common import AppState, init_page
from app import ArcticQueryQuest

logger = logging.getLogger(__name__)

if __name__ == '__main__':
logging.info("initializing app...")
init_page()
arctic_query_quest: ArcticQueryQuest = ArcticQueryQuest()

state = st.session_state.app_state

logging.info(f"rendering state: {state}")
if state == AppState.START:
arctic_query_quest.start()
elif state == AppState.QUIZ:
Expand Down

0 comments on commit b8c4f63

Please sign in to comment.