Skip to content

Commit

Permalink
only install flake8 for lint, added COPYING file, added logger to Ser…
Browse files Browse the repository at this point in the history
…vice, URLs in README changed, Core Engine URL changed
  • Loading branch information
andrptrc committed Dec 14, 2023
1 parent 44f15c8 commit 01e6b69
Show file tree
Hide file tree
Showing 7 changed files with 669 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/actions/lint-python-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
- name: Install app dependencies
shell: bash
working-directory: ${{ inputs.python-app-path }}
run: pip3 install -r requirements.txt -r requirements-all.txt
run: pip3 install flake8

- name: Lint Python code
shell: bash
Expand Down
44 changes: 0 additions & 44 deletions .github/actions/run-ml-experiment-with-dvc/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/doodle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
env:
ENVIRONMENT: production
LOG_LEVEL: info
ENGINE_URLS: "'[\"https://core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
ENGINE_URLS: "'[\"https://backend-core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
SERVICE_URL: https://doodle-swiss-ai-center.kube.isc.heia-fr.ch
run: |
# Set doodle version
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
env:
ENVIRONMENT: production
LOG_LEVEL: info
ENGINE_URLS: "'[\"https://core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
ENGINE_URLS: "'[\"https://backend-core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
SERVICE_URL: https://doodle-swiss-ai-center.kube.isc.heia-fr.ch
run: |
# Set doodle version
Expand Down
661 changes: 661 additions & 0 deletions COPYING

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This service will analyse a black and white doodle and guess what have been drawn.

_Check the [related documentation](https://swiss-ai-center.github.io/core-engine/reference/doodle) for more information._
_Check the [related documentation](https://docs.swiss-ai-center.ch/reference/doodle) for more information._
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
common-code[test] @ git+https://github.com/swiss-ai-center/core-engine.git@main#subdirectory=common-code
common-code[test] @ git+https://github.com/swiss-ai-center/common-code.git@main
torch==2.0.1
Pillow==9.2.0
numpy==1.24.1
5 changes: 3 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class MyService(Service):

# Any additional fields must be excluded for Pydantic to work
model: object = Field(exclude=True)
logger: object = Field(exclude=True)
network: object = Field(type=TestNN, exlude=True)

def __init__(self):
Expand Down Expand Up @@ -190,7 +191,7 @@ def __init__(self):
],
has_ai=True
)

self.logger = get_logger(settings)
self.model = TestNN(DOODLE_RECOGNITION_NETWORK, DOODLE_CLASSNAMES_PATH)

def process(self, data):
Expand Down Expand Up @@ -275,7 +276,7 @@ def findFirstNonNull(elem):
contact={
"name": "Swiss AI Center",
"url": "https://swiss-ai-center.ch/",
"email": "ia.recherche@hes-so.ch",
"email": "info@swiss-ai-center.ch",
},
swagger_ui_parameters={
"tagsSorter": "alpha",
Expand Down

0 comments on commit 01e6b69

Please sign in to comment.