Summary
Why is this needed?
Adds missing compatibility for the Python primitive complex type.
Usage example
tesseract-streamlit "http://localhost:39597" app.py
Where http://localhost:39597 has a complex attribute in its InputSchema, and app.py has a grouped pair of numerical inputs for real and imaginary components of the corresponding complex number.
Summary
complextypes in theInputSchematoparse.py:_simplify_schema()render_fields()macro intemplates/template.j2to catch the complex input type, and render a pair of numerical inputs, taking real and imaginary components of the complex numberWhy is this needed?
Adds missing compatibility for the Python primitive
complextype.Usage example
tesseract-streamlit "http://localhost:39597" app.pyWhere
http://localhost:39597has a complex attribute in itsInputSchema, and app.py has a grouped pair of numerical inputs for real and imaginary components of the corresponding complex number.