Skip to content

Commit 1a2f797

Browse files
committed
updated to sdk 1.0.9
1 parent 06006e9 commit 1a2f797

File tree

8 files changed

+16
-18
lines changed

8 files changed

+16
-18
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ bin/
88
build/
99
*~
1010
**/*.pyc
11-
**/__pyche__
11+
**/__pyche__

.github/workflows/issue-apps-project.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types:
66
- opened
77
- transferred
8-
pull_request:
8+
pull_request_target:
99
types:
1010
- opened
1111

@@ -16,3 +16,4 @@ jobs:
1616
secrets: inherit
1717
with:
1818
projectnum: 12
19+

.github/workflows/issue-close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
issues:
55
types:
66
- closed
7-
pull_request:
7+
pull_request_target:
88
types:
99
- closed
1010

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the same base image version as the clams-python python library version
2-
FROM ghcr.io/clamsproject/clams-python-ffmpeg-tf2:1.0.3
2+
FROM ghcr.io/clamsproject/clams-python-ffmpeg-tf2:1.0.9
33
# See https://github.com/orgs/clamsproject/packages?tab=packages&q=clams-python for more base images
44
# IF you want to automatically publish this image to the clamsproject organization,
55
# 1. you should have generated this template without --no-github-actions flag

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
2-
31
# INA-Segmenter for CLAMS
42

3+
## Description
4+
55
This is a CLAMS app that wraps the [inaSpeechSegmenter tool](https://github.com/ina-foss/inaSpeechSegmenter).
66

7+
## User instruction
78

8-
### Requirement
9+
General user instructions for CLAMS apps is available at [CLAMS Apps documentation](https://apps.clams.ai/clamsapp).
10+
11+
### System requirements
912

10-
#### system packages
1113
* libsndfile
1214
* ffmpeg
1315

@@ -19,7 +21,7 @@ apt install ffmpeg libsndfile1
1921

2022
For other OSs, please refer to the supported package managers to install system libraries.
2123

22-
#### python packages
24+
### Python packages
2325

2426
Install dependencies using [`requirements.txt`](requirements.txt).
2527

@@ -33,7 +35,3 @@ If you encounter an `AttributeError` from `module 'keras.utils.generic_utils'`,
3335
pip uninstall -y keras keras-nightly
3436
pip install --upgrade --force-reinstall $(grep tensorflow requirements.txt)
3537
```
36-
37-
### Usage
38-
39-
General user instruction for CLAMS apps is available at [CLAMS Apps documentation](https://apps.clams.ai/clamsapp/).

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
import logging
23
from typing import Union
34

45
from clams import Restifier
@@ -46,9 +47,7 @@ def _annotate(self, mmif: Union[str, dict, Mmif], **runtime_params) -> Mmif:
4647

4748
if __name__ == "__main__":
4849
parser = argparse.ArgumentParser()
49-
parser.add_argument(
50-
"--port", action="store", default="5000", help="set port to listen"
51-
)
50+
parser.add_argument("--port", action="store", default="5000", help="set port to listen")
5251
parser.add_argument("--production", action="store_true", help="run gunicorn server")
5352

5453
parsed_args = parser.parse_args()
@@ -58,4 +57,5 @@ def _annotate(self, mmif: Union[str, dict, Mmif], **runtime_params) -> Mmif:
5857
if parsed_args.production:
5958
segmenter_app.serve_production()
6059
else:
60+
app.logger.setLevel(logging.DEBUG)
6161
segmenter_app.run()

metadata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ def appmetadata() -> AppMetadata:
3636
for param in ClamsApp.universal_parameters:
3737
metadata.add_parameter(**param)
3838
sys.stdout.write(metadata.jsonify(pretty=True))
39-

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
clams-python==1.0.3
1+
clams-python==1.0.9
22
inaSpeechSegmenter==0.7.6
33
tensorflow==2.*

0 commit comments

Comments
 (0)