Final project for CSE-256
Team members:
- Wirawit Rueopas (A53277204)
- Saideep Reddy Pakkeer (A53269319)
Either one should work:
Note that it sends network requests everytime you type on the textbox to update prediction, so it will be slow.
This project is built with Dash, a Python framework for building interactive web applications.
Install Dash: https://dash.plot.ly/installation
python app.py
The root of webpage DOM is set in app.py
:
from components.example_layout import ExampleLayout
layout = ExampleLayout() # child of BaseComponent, see example_layout.py
app.layout = layout.render()
where example_layout
is just a component created with Container
(a wrapper of Div
)
The project uses the grid system from Semantic-UI, with its wrapper functions in components/utils.py
. Basically a webpage consists of rows, where a row has 16 columns inside it. The root of webpage must be Container
.
Coding a layout goes like this:
- Add a block that fills webpage horizonally with
Row(...)
- Inside
...
ofRow
you can add an array ofMultiColumn(...)
(or, simply oneDiv
) - Inside
...
ofMultiColumn
you can add web components, e.g.,Div