tsystems/visual_document_retrieval
2
1import streamlit as st2from streamlit_navigation_bar import st_navbar3import st_pages as pg4 5st.set_page_config(page_title='T-Systems LLM Playground', page_icon='favicon.png')6 7with st.sidebar:8 st.html("""<center><img src="https://upload.wikimedia.org/wikipedia/commons/0/0a/T-SYSTEMS-LOGO2013.svg" width="300" height="68" ></center>""")9 10 st.markdown('**This is playground for the LLM available via T-Systems AI Foundation Services**')11 12pages_name = ['Visual Retrieval',"Documentation", "Terms & Conditions"]13urls = {14 #"Create API Key":"https://apikey.llmhub.t-systems.net/#/dashboard",15 "Documentation":"https://docs.llmhub.t-systems.net/",16 "Terms & Conditions":"https://creativecommons.org/licenses/by-nc/4.0/legalcode.en"17}18styles = {19 "nav": {20 #"background-color": "#E20074",21 "justify-content": "center",22 },23 "span": {24 "border-radius": "0.5rem",25 "color": "rgb(49, 51, 63)",26 "margin": "0 0.125rem",27 "padding": "0.4375rem 0.625rem",28 },29 # "active": {30 # "background-color": "rgba(256, 0, 116, 0.25)",31 # },32 "hover": {33 "background-color": "rgba(226, 0, 116, 0.5)",34 },35}36 37# options = {38# "show_menu": False,39# #"show_sidebar": False,40# }41page = st_navbar(42 pages_name,43 urls=urls,44 styles=styles,45 #options=options,46)47 48if page == 'Visual Retrieval':49 pg.page_vdr()50 