idmd.ui.uploader_ui.FileUploaderUI

class idmd.ui.uploader_ui.FileUploaderUI(position=0, file_types=None, default_file=None)[source]

Bases: Component

Provides UI for file uploading.

Initializes the FileUploaderUI component with a specific position, file types, and a default file.

Args:

position (int): The column position of the component. Defaults to 0. file_types (list, optional): List of allowed file types for upload. Defaults to [“csv”, “xlsx”]. default_file (str, optional): Path to a default file to load if no file is uploaded. Defaults to None.

Methods

render

Renders the file uploader in the Streamlit interface.

render()[source]

Renders the file uploader in the Streamlit interface.

Handles file uploads and initializes the dataset in the session state.

Return type:

None