Int, str, float are displayed through simple input boxes (of the type text-area).
"""A simple app to demo the use of Lists to handle complex type""" from typing import List import streamlit as st from pydantic import BaseModel, Field, ValidationError, parse_obj_as from front.scrap.pydantic_wrap import SimplePageFuncPydanticWrite import streamlit_pydantic as sp class ListModel(BaseModel): choice: List[int] configs = {"page_factory": SimplePageFuncPydanticWrite} def example(input: ListModel, multiplier:int): return [item*multiplier for item in input.choice] if __name__ == "__main__": from streamlitfront.base import dispatch_funcs app = dispatch_funcs([func, wrapped_func], configs=configs) app()