-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
66 lines (54 loc) · 1.52 KB
/
app.py
File metadata and controls
66 lines (54 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import streamlit as st
import pandas as pd
import numpy as np
import datetime
import os
from config import config
from dotenv import load_dotenv
# from langfuse import get_client
load_dotenv(override=True)
st.set_page_config(
page_title=config.APP_NAME,
page_icon=config.APP_ICON,
layout="wide",
menu_items=config.MENU_ITEMS,
)
# langfuse = get_client()
# Verify connection
# if langfuse.auth_check():
# print("Langfuse client is authenticated and ready!")
# else:
# print("Authentication failed. Please check your credentials and host.")
if "init" not in st.session_state:
st.session_state.init = True
pages = [
st.Page(
"pages/Medical_Image_Analysis.py",
title="Medical Image Analysis",
icon=":material/diagnosis:",
),
st.Page("pages/Security.py", title="Security", icon=":material/security:"),
st.Page("pages/Feedback.py", title="Feedback", icon=":material/rate_review:"),
st.Page(
"pages/Configuration.py", title="Configuration", icon=":material/settings:"
),
st.Page(
"pages/About.py",
title="About",
# icon=":material/widgets:"
icon=":material/info:",
),
]
page = st.navigation(pages)
page.run()
# with st.sidebar.container(height=310):
# if page.title == "Home":
# pass
# elif page.title == "About":
# pass
# else:
# pass
st.sidebar.markdown(" ")
st.sidebar.caption(
f"© {datetime.date.today().year} | Made with :material/favorite: by [{config.COMPANY}]({config.COMPANY_URL})"
)