IBYDMT / app.py
jacopoteneggi's picture
Update
a40e67a verified
raw
history blame
1.23 kB
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()