Interactive-RAG icon indicating copy to clipboard operation
Interactive-RAG copied to clipboard

Add the ability to upload/supply materials for learning.

Open wbleonard opened this issue 2 years ago • 2 comments

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

wbleonard avatar Nov 21 '23 20:11 wbleonard

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 avatar Dec 07 '23 16:12 ranfysvalle02

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

Streamlit doesn't currently support complex layouts natively

ranfysvalle02 avatar Feb 19 '24 02:02 ranfysvalle02