#!/bin/bash

# VENV_PATH="/home/XXXX-3/miniforge3/envs/trainingtt/"

# source "$VENV_PATH/bin/activate"

export WANDB_API_KEY="7133f16727b5ee93dc95d4cbf35ebaa37e2310a4"

# Initialize conda if available, otherwise skip
if command -v conda &> /dev/null; then
    conda deactivate
fi

cd /home/XXXX-3/forecasting/
source forecast/bin/activate
module load cuda/12.1

cd /home/XXXX-3/forecasting/qgen
# bash scripts/iterate_datamix.sh
python3 from_article.py --article_path $1 --num_q 3 --freeq --check_leakage --choose_best --validate --use_openrouter
# bash scripts/check_halawi_train.sh $1 $2

# Clean up environment if conda is available
if command -v conda &> /dev/null; then
    conda deactivate
fi