streamlit load file
import streamlit as st
import os
filename = st.text_input('Enter a file path:')
try:
with open(filename) as input:
st.text(input.read())
except FileNotFoundError:
st.error('File not found.')
streamlit load file
import streamlit as st
import os
filename = st.text_input('Enter a file path:')
try:
with open(filename) as input:
st.text(input.read())
except FileNotFoundError:
st.error('File not found.')
streamlit load file
import streamlit as st
import os
def file_selector(folder_path='.'):
filenames = os.listdir(folder_path)
selected_filename = st.selectbox('Select a file', filenames)
return os.path.join(folder_path, selected_filename)
filename = file_selector()
st.write('You selected `%s`' % filename)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us