Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to upload/supply materials for learning. #2

Open
wbleonard opened this issue Nov 21, 2023 · 2 comments
Open

Add the ability to upload/supply materials for learning. #2

wbleonard opened this issue Nov 21, 2023 · 2 comments

Comments

@wbleonard
Copy link
Contributor

In addition to Google search results, add the ability to upload materials (that may not be public) for learning.

@ranfysvalle02
Copy link
Owner

Maybe the streamlit FileUploader component...

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()

@ranfysvalle02
Copy link
Owner

Was able to add it -- but really messes with the layout....

Streamlit doesn't currently support complex layouts natively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants