import streamlit as st
import pandas as pd
def display_ethics():
# ethics statement
display_ethics_statement()
# license
display_license_statement()
def display_license_statement():
st.write('')
st.write('##### How papers were included in the index based on license.')
st.caption(f'The paper id and title has been included in the index for a full attribution to the authors')
ccby = ['CC BY',
'full content KG questions pipeline']
ccbysa = ['CC BY-SA',
'full content KG questions pipeline']
ccbyncsa = ['CC NC-BY-NC-SA',
'full content KG questions pipeline']
ccbyncnd = ['CC NC-BY-NC-ND',
'arxiv metadata abstract KG questions pipeline']
license_statement = [ccby, ccbysa, ccbyncsa, ccbyncnd]
df = pd.DataFrame(license_statement)
df.columns = ['license', 'how papers are used']
st.markdown(""" """, unsafe_allow_html=True)
st.write(df.to_html(escape=False), unsafe_allow_html=True)
def display_ethics_statement():
st.write('##### Bias, risks, limitations and terms of use for the models.')
ethics_statement = []
falcon = ['hf/tiiuae/falcon-7b-instruct', 'Bias, Risks, and Limitations']
cohere = ['cohere/command', 'Terms of use']
camel = ['baseten/Camel-5b', 'Bias, Risks, and Limitations']
davinci = ['openai/text-davinci-003', 'Terms of Use']
ethics_statement.extend([falcon, cohere, camel, davinci])
df = pd.DataFrame(ethics_statement)
df.columns = ['model', 'model link']
st.markdown(""" """, unsafe_allow_html=True)
st.write(df.to_html(escape=False), unsafe_allow_html=True)