Skip to content

quantum-entangled/machine-learning-ui

Repository files navigation

Docs site

The app provides User Interface based on Streamlit framework for managing basic Machine Learning workflows.

The app was originally developed as part of research project, funded by St. Petersburg State University, to help researchers solve problems of Non-equilibrium Gas Dynamics using Machine Learning methods.

Installing via Docker (Recommended)

For Usage

  1. Install Docker for your system by following the official guide: Docker Installation.

  2. Open Docker Desktop, navigate to the search bar at the top or press Ctrl+K, type ivanshalamov/machine-learning-ui, and pull the latest 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
  3. 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
  4. 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
  5. 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

  1. Install Docker for your system by following the official guide: Docker Installation.
  2. Clone the repository to your local machine and navigate to its root folder using cd.
  3. In the terminal, run docker compose up. Building the image might take a while. The app will run at localhost:8501.

    To run the container in detached mode, use the -d flag, allowing you to use your current terminal.

  4. To stop the app, run docker compose stop or press Ctrl+C. You can restart it with the docker compose up command.

    In development mode, changes in your local src, docs, and tests folders, as well as Poetry files, are immediately reflected in the container without needing a restart.

Installing via Poetry

  1. Install Python 3.11: Official Website.
  2. Install Poetry for your system by following the official guide: Poetry Installation. Remember to add Poetry to your Path.
  3. In the terminal, run poetry config virtualenvs.in-project true.
  4. Clone the repository to your local machine and navigate to its root folder using cd.
  5. In the terminal, run poetry install --without dev for basic usage or poetry install --with docs,tests for development (comma-separated without spaces). On Windows, include windows in the --with flag; this is necessary for TensorFlow to function correctly.
  6. Start the app by running streamlit run src/mlui/''$'\360\237\217\240''_Home.py'. Access the app by navigating to the provided URL.
  7. To stop the app, press Ctrl+C in the terminal. You can restart it using the previous step.