Fix the update.sh

The script is used by OEMs to fetch the latest model files.
It was broken before.

Found this when working on the release doc.

Test: Run the script
Bug: 120852156
Change-Id: Iedae27064bb855fd01597c3c4b3381cfcf11817d
diff --git a/models/update.sh b/models/update.sh
index 8b60d2f..e756859 100755
--- a/models/update.sh
+++ b/models/update.sh
@@ -3,10 +3,22 @@
 
 set -e
 
-BASE_URL=https://www.gstatic.com/android/text_classifier/p/live
+ANNOTATOR_BASE_URL=https://www.gstatic.com/android/text_classifier/q/live
+ACTIONS_BASE_URL=https://www.gstatic.com/android/text_classifier/actions/q/live
+LANGID_BASE_URL=https://www.gstatic.com/android/text_classifier/langid/q/live
+
+download() {
+	echo "$1/FILELIST"
+	for f in $(wget -O- "$1/FILELIST"); do
+		destination="$(basename -- $f)"
+		wget "$1/$f" -O "$destination"
+	done
+}
 
 cd "$(dirname "$0")"
 
-for f in $(wget -O- "$BASE_URL/FILELIST"); do
-  wget "$BASE_URL/$f" -O "$f"
-done
+download $ANNOTATOR_BASE_URL
+download $ACTIONS_BASE_URL
+download $LANGID_BASE_URL
+
+echo "You may want to edit the file name of downloaded files, see external/libtextclassifier/Android.bp"