You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import streamlit as st
def main():
# Create a file uploader component
uploaded_file = st.file_uploader("Choose a file")
# Check if a file was uploaded
if uploaded_file is not None:
# Read the contents of the file
file_contents = uploaded_file.read()
# Display the file contents
st.write("File contents:")
st.write(file_contents)
if __name__ == "__main__":
main()
In addition to Google search results, add the ability to upload materials (that may not be public) for learning.
The text was updated successfully, but these errors were encountered: