model-license / app.py
DCNemesis
Add license and Streamlit app
bb39ec8
raw
history blame contribute delete
730 Bytes
import streamlit as st
txt_link = "https://huggingface.co/spaces/bigscience/license/raw/main/SIL-AI-RAIL-M.txt"
pdf_link = "https://huggingface.co/spaces/bigscience/license/raw/main/SIL-AI-RAIL-M.pdf"
html_link = "https://huggingface.co/spaces/bigscience/license/raw/main/SIL-AI-RAIL-M.html"
st.sidebar.title("SIL AI & NLP")
st.sidebar.markdown("## SIL RAIL-M License v1.0")
st.sidebar.markdown(f"This is the home of the SIL RAIL-M RAIL License v1.0.\
If you would like to download the license you can get it as [.txt]({txt_link}), \
[.pdf]({pdf_link}), or [.html]({html_link}) file.")
with open("SIL-AI-RAIL-M.html", "r") as f:
license_html = f.read()
st.markdown(license_html, unsafe_allow_html=True)