From 44f15c898b2740e16984ce2e8071bd51cf7f122a Mon Sep 17 00:00:00 2001 From: Andrea Petrucci Date: Tue, 14 Nov 2023 07:47:20 +0000 Subject: [PATCH] modifications to add has_ai tag on service --- src/main.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.py b/src/main.py index cc1986b..f98425f 100644 --- a/src/main.py +++ b/src/main.py @@ -184,10 +184,11 @@ def __init__(self): ], tags=[ ExecutionUnitTag( - name=ExecutionUnitTagName.IMAGE_PROCESSING, - acronym=ExecutionUnitTagAcronym.IMAGE_PROCESSING, + name=ExecutionUnitTagName.IMAGE_RECOGNITION, + acronym=ExecutionUnitTagAcronym.IMAGE_RECOGNITION, ), ], + has_ai=True ) self.model = TestNN(DOODLE_RECOGNITION_NETWORK, DOODLE_CLASSNAMES_PATH) @@ -261,11 +262,9 @@ def findFirstNonNull(elem): } -api_description = """ -This service will try to guess what have been doodled... +api_description = """This service will guess what have been doodled. """ -api_summary = """ -Doodle service +api_summary = """This service will guess what have been doodled. """ # Define the FastAPI application with information @@ -276,7 +275,7 @@ def findFirstNonNull(elem): contact={ "name": "Swiss AI Center", "url": "https://swiss-ai-center.ch/", - "email": "info@swiss-ai-center.ch", + "email": "ia.recherche@hes-so.ch", }, swagger_ui_parameters={ "tagsSorter": "alpha",