Skip to content

Commit 45b70f3

Browse files
feat: Add Content Understanding analyzer creation scripts to process_custom_data.sh
1 parent 06cd33c commit 45b70f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

infra/scripts/process_custom_data.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,23 @@ if [ $? -ne 0 ]; then
495495
exit 1
496496
fi
497497

498+
# Create Content Understanding analyzers
499+
echo "Creating Content Understanding analyzer templates..."
500+
echo "Running 02_create_cu_template_text.py"
501+
python infra/scripts/index_scripts/02_create_cu_template_text.py --cu_endpoint="$cuEndpoint"
502+
if [ $? -ne 0 ]; then
503+
echo "Error: 02_create_cu_template_text.py failed."
504+
exit 1
505+
fi
506+
507+
echo "Running 02_create_cu_template_audio.py"
508+
python infra/scripts/index_scripts/02_create_cu_template_audio.py --cu_endpoint="$cuEndpoint"
509+
if [ $? -ne 0 ]; then
510+
echo "Error: 02_create_cu_template_audio.py failed."
511+
exit 1
512+
fi
513+
echo "Content Understanding analyzers created successfully."
514+
498515
# Run 04_cu_process_custom_data.py
499516
echo "Running 04_cu_process_custom_data.py..."
500517
sql_server_fqdn="$sqlServerName.database.windows.net"

0 commit comments

Comments
 (0)