Local Installation#
Installing via Docker (Recommended)#
For Usage#
Install Docker for your system by following the official guide: Docker Installation.
Open Docker Desktop, navigate to the search bar at the top or press
Ctrl+K
, typeivanshalamov/machine-learning-ui
, and pull thelatest
image. Wait for it to download.Periodically check for updates of the image by clicking the
Pull
button in the ‘Actions’ column of the image under the⋮
sign.Visual Instruction
In the ‘Images’ tab, click the
Run
button for the pulled image in the ‘Actions’ column. In the popped-up window, enter a name for the container (e.g.,ml-ui-app
) in the ‘Container name’ section. Specify an available port (e.g.,8501
) in the ‘Ports’ section, then run the image.Visual Instruction
Don’t click the provided link in the ‘Logs’ tab, it only works inside the container. Instead, navigate to the ‘Containers’ tab and click the blue link in the ‘Ports’ column to access the app.
Visual Instruction
To stop the app, go to the ‘Containers’ tab again and click
Stop
in the ‘Actions’ column.Visual Instruction
To restart the app, you don’t need to repeat all the steps. Just go to the ‘Containers’ tab and click
Start
in the ‘Actions’ column. Then, use the blue link to access the app.
Visual Instruction
For Development#
Install Docker for your system by following the official guide: Docker Installation.
Clone the repository to your local machine and navigate to its root folder using
cd
.In the terminal, run
docker compose up
. Building the image might take a while. The app will run atlocalhost:8501
.To run the container in detached mode, use the
-d
flag, allowing you to use your current terminal.To stop the app, run
docker compose stop
or pressCtrl+C
. You can restart it with thedocker compose up
command.In development mode, changes in your local
src
,docs
, andtests
folders, as well as Poetry files, are immediately reflected in the container without needing a restart.
Installing via Poetry#
Install Python 3.11: Official Website.
Install Poetry for your system by following the official guide: Poetry Installation. Remember to add Poetry to your Path.
In the terminal, run
poetry config virtualenvs.in-project true
.Clone the repository to your local machine and navigate to its root folder using
cd
.In the terminal, run
poetry install --without dev
for basic usage orpoetry install --with docs,tests
for development (comma-separated without spaces). On Windows, includewindows
in the--with
flag; this is necessary for TensorFlow to function correctly.Start the app by running
streamlit run src/mlui/''$'\360\237\217\240''_Home.py'
. Access the app by navigating to the provided URL.To stop the app, press
Ctrl+C
in the terminal. You can restart it using the previous step.