#!/bin/bash # Update and initialize submodules recursively git submodule init git submodule update --init --recursive export POETRY_CACHE_DIR="/app/.cache" ls -la git config --system --add safe.directory /app git config --system --add safe.directory /app/olas-predict-benchmark git config --system --add safe.directory /app/olas-predict-benchmark/benchmark/mech # Checkout specific branches for your submodules cd olas-predict-benchmark/benchmark git checkout fix/mech-packages cd ../.. cd olas-predict-benchmark/benchmark/mech git checkout main cd ../../.. cat olas-predict-benchmark/benchmark/pyproject.toml ls -la olas-predict-benchmark/benchmark/mech # Configure poetry to create virtual environments within the project directory poetry config virtualenvs.in-project true # Install dependencies as specified in poetry.lock file poetry install # run gradio using the command below poetry run python app.py