Spaces:
Runtime error
Runtime error
File size: 2,960 Bytes
cad936e 0066f01 cad936e 88f59a8 0066f01 cad936e 0066f01 cad936e 0066f01 cad936e 0066f01 cad936e 5fb4442 0066f01 cad936e 5fb4442 cad936e 5fb4442 3e701f9 0066f01 cad936e 5fb4442 0066f01 cad936e 5fb4442 3e701f9 0066f01 cad936e 0066f01 |
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 48 |
import streamlit as st
import pandas as pd
# from txtai.embeddings import Embeddings
# import gdown
import os
from PIL import Image
search_image = Image.open('images/Search.png')
browse_image = Image.open('images/Browse.png')
st.set_page_config(layout="wide", page_title="ACl23 Secret Language")
# with open('style.css') as f:
# st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
st.title("ACl23 Submission: Finding Secret Language")
# st.sidebar.markdown("### This webpage serves as an illustration of an anonymous submission to ACL 23.")
st.markdown('This webpage serves as an illustration of an anonymous submission to ACL 23.')
st.markdown('### What do we offer?')
st.markdown('We present two methods for searching secret languages. The first method is a direct search using the "π Dictionary (Search)" option, while the second method, "π Dictionary (Browse)", involves browsing words that have already been found to have secret languages. '
'Additionally, we also provide a tool for finding secret languages in a black-box manner.')
st.markdown('#### How to use "π Dictionary (Search)"?')
st.markdown("By entering a word you want to find its secret languages, you can view the word's meaning in English, all the secret languages we have discovered for it, and examples. "
"The hyperlinks sometimes might not work due to the contained property of Hugging Face space.")
st.image(search_image, caption='A search example.')
st.markdown('#### How to use "π Dictionary (Browse)"?')
st.markdown('By clicking on the initial letters (A to Z, numbers, and other characters), you can view all the words whose secret languages have been discovered and that begin with the selected initial. By clicking on a word, you will be redirected to the search page, where you can view information about the selected word.')
st.image(browse_image, caption='A browse example.')
st.markdown('#### How to use "π Blackbox Attack"?')
st.markdown('We offer two methods for generating replacement words using secret languages. Detailed introduction can be found on the page.')
st.markdown('### Models and datasets.')
st.markdown('On this page, we present the secret languages we discovered using ALBERT, DistillBERT, and Roberta models and data from the GLUE (MRPC), SNLI, and SQuAD datasets.')
st.markdown('### Ethics statements for this webpage')
st.markdown('We present secret languages discovered using our proposed algorithms. '
'Our experiments utilize publicly available NLP and cross-modal datasets and leverage pre-trained language models. '
'We do not believe that our code or methods raise concerns regarding discrimination, bias, fairness, inappropriate potential applications, impact, privacy and security issues, legal compliance, research integrity, or research practice. '
'However, the datasets and models used may contain biases that may be inherited by the models we use.')
|