-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession6.sh
More file actions
29 lines (23 loc) · 845 Bytes
/
session6.sh
File metadata and controls
29 lines (23 loc) · 845 Bytes
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
#!/bin/bash
# Run all Session 6 LangTest scripts and store results in session6_langtest_testresults
# Load environment variables from .env at workspace root if present
if [ -f "$(dirname "$0")/.env" ]; then
set -a
. "$(dirname "$0")/.env"
set +a
fi
# Ensure OPENAI_API_KEY is set
if [ -z "$OPENAI_API_KEY" ]; then
echo "Warning: OPENAI_API_KEY is not set. Please set it in your .env file at the workspace root."
else
export OPENAI_API_KEY
echo "OPENAI_API_KEY is set."
fi
LANGTEST_DIR="Session 6/langtest"
RESULTS_DIR="session6_langtest_testresults"
mkdir -p "$RESULTS_DIR"
python "$LANGTEST_DIR/langtest_bias_test.py"
python "$LANGTEST_DIR/langtest_fairness_test.py"
python "$LANGTEST_DIR/langtest_robustness_test.py"
echo "All Session 6 LangTest tests complete. Results are in $RESULTS_DIR."
read -p "Press enter to exit..."