File size: 1,225 Bytes
80dc74c
 
 
 
 
 
4f55ca2
 
 
 
 
 
 
 
80dc74c
 
 
 
 
 
 
 
 
 
 
4f55ca2
 
 
 
80dc74c
 
 
 
 
 
 
 
 
 
 
 
a40e67a
80dc74c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import numpy as np
import open_clip
import streamlit as st

from app_lib.main import main

if "sidebar_state" not in st.session_state:
    st.session_state.sidebar_state = "collapsed"
if "disabled" not in st.session_state:
    st.session_state.disabled = False
if "results" not in st.session_state:
    st.session_state.results = None

st.set_page_config(layout="wide", initial_sidebar_state=st.session_state.sidebar_state)

st.session_state.sidebar_state = "collapsed"
st.markdown(
    """
        <style>
            textarea {
                font-family: monospace !important;
            }
            input {
                font-family: monospace !important;
            }

            [data-testid="stHorizontalBlock"] {
                align-items: center;
            }
        </style>
        """,
    unsafe_allow_html=True,
)

st.markdown(
    """
        # I Bet You Did Not Mean That

        Official HF Space for the paper [*I Bet You Did Not Mean That: Testing Semantci Importance via Betting*](https://arxiv.org/pdf/2405.19146), by [Jacopo Teneggi](https://jacopoteneggi.github.io) and [Jeremias Sulam](https://sites.google.com/view/jsulam).

        ---
    """,
)

if __name__ == "__main__":
    main()