Spaces:
Runtime error
Runtime error
Merge pull request #39 from HemanthSai7/main
Browse filesFiles changed (3)
26 unmodified lines2728293026 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -text.png.jpg.mp454 unmodified lines555657585960616263646554 unmodified lines except: st.error("Signup Failed")
st.divider() st.subheader(":rainbow[Our Prototype in Action 🎬]") with st.expander("Demo video 🎬",expanded=True): st.video("frontend/images/Showcase.mp4")
123456789101112131415161718192021222324252627import streamlit as st
import base64import validatorsfrom pathlib import Path
def add_logo(logo_url: str, height: int = 120):
if validators.url(logo_url) is True: logo = f"url({logo_url})" else: logo = f"url(data:image/png;base64,{base64.b64encode(Path(logo_url).read_bytes()).decode()})"
st.markdown( f""" <style> [data-testid="stSidebarNav"] {{ background-image: {logo}; background-repeat: no-repeat; background-size: contain; padding-top: {height - 40}px; background-position: 20px 20px }} </style> """, unsafe_allow_html=True, ).gitattributes+1
frontend/components/login.py+5
frontend/components/logo.pyAdded+27