import streamlit as st def build_sidebar(): sidebar = """


Github project - Based on Haystack

Project by Sara Zanzottera and Tuana Celik

Project based on the "Introduction to Image Retrieval" presentation by Sara at the Open NLP Meetup

Watch the presentation

""" st.sidebar.markdown(sidebar, unsafe_allow_html=True) def set_state_if_absent(key, value): if key not in st.session_state: st.session_state[key] = value def reset_results(*args): st.session_state.results = None