-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add nutripatrol integration (#1326)
* feat: switch to nutripatrol moderation service * refactor: rename robotoff.slack into robotoff.notifier * fix: add confidence score to image_flag prediction type The confidence score was only stored in data->likelihood field * fix: fix failing unit test
- Loading branch information
1 parent
9d339d0
commit fa3dc0c
Showing
7 changed files
with
81 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
echo "ROBOTOFF_TLD=net" >> $GITHUB_ENV | ||
echo "MONGO_URI=mongodb://10.1.0.200:27017" >> $GITHUB_ENV | ||
echo "INFLUXDB_HOST=10.1.0.200" >> $GITHUB_ENV | ||
echo "IMAGE_MODERATION_SERVICE_URL=https://nutripatrol.openfoodfacts.net/api/v1/flags" | ||
- name: Set various variable for production deployment | ||
if: matrix.env == 'robotoff-org' | ||
run: | | ||
|
@@ -39,6 +40,7 @@ jobs: | |
# use prod mongodb through stunnel | ||
echo "MONGO_URI=mongodb://10.1.0.113:27017" >> $GITHUB_ENV | ||
echo "INFLUXDB_HOST=10.1.0.201" >> $GITHUB_ENV | ||
echo "IMAGE_MODERATION_SERVICE_URL=https://nutripatrol.openfoodfacts.org/api/v1/flags" | ||
- name: Wait for container build workflow | ||
uses: tomchv/[email protected] | ||
id: wait-build | ||
|
@@ -134,8 +136,7 @@ jobs: | |
echo "SLACK_TOKEN=${{ secrets.SLACK_TOKEN }}" >> .env | ||
echo "GUNICORN_NUM_WORKERS=8" | ||
echo "EVENTS_API_URL=https://event.openfoodfacts.${{ env.ROBOTOFF_TLD }}" >> .env | ||
# TODO: remove this url when we have a proper server running for this purpose | ||
echo "IMAGE_MODERATION_SERVICE_URL=https://amathjourney.com/api/off-annotation/flag-image" | ||
echo "IMAGE_MODERATION_SERVICE_URL=${{ env.IMAGE_MODERATION_SERVICE_URL }}" >> .env | ||
- name: Create Docker volumes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters