File size: 477 Bytes
75128dd
 
8ab7d9a
 
 
 
 
 
 
75128dd
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st

def build_sidebar():
    sidebar = """
    <p><br/><a href='https://github.com/TuanaCelik/find-the-animal'>Github project</a> - Based on <a href='https://github.com/deepset-ai/haystack'>Haystack</a></p>
    </div>
    """
    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