Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion gui/streamlit_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import streamlit as st
from streamlit_theme import st_theme
import matplotlib.pyplot as plt
from matplotlib.cm import inferno
import torch
Expand Down Expand Up @@ -59,7 +60,14 @@ def caustic_critical_line(
</style>
"""
st.markdown(css, unsafe_allow_html=True)
logo_url = (

theme = st_theme()
if theme["base"] == "dark":
logo_url = (
"https://github.com/Ciela-Institute/caustics/raw/main/media/caustics_logo.png?raw=true"
)
else:
logo_url = (
"https://github.com/Ciela-Institute/caustics/raw/main/media/caustics_logo_white.png?raw=true"
)
st.sidebar.image(logo_url)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pydantic>=2.6.1,<3
safetensors>=0.4.1
scipy>=1.8.0
torch>=2.0.0
st-theme