File size: 813 Bytes
52938ea
 
 
a1dbd93
52938ea
 
8e635d7
 
7108a33
 
8e635d7
 
 
7108a33
52938ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

# Update and initialize submodules recursively
git submodule init
git submodule update --init --recursive

export POETRY_CACHE_DIR="/app"

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 ../../..

# 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