Spaces:
Sleeping
Sleeping
File size: 393 Bytes
4cd874e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import streamlit as st
def load_markdown(file_path):
with open(file_path, encoding="utf8") as f:
return f.read()
def display_front_page():
html_front = load_markdown('docs/page_front.md')
st.markdown(f"{html_front}", unsafe_allow_html=True)
if __name__ == "__main__":
display_front_page()
x = st.slider('Select a value')
st.write(x, 'squared is', x * x) |