Skip to content

Commit b0fc648

Browse files
authored
Fix typo: seperate -> separate (#20)
* Fix typo: seperate -> separate
1 parent e8d1f66 commit b0fc648

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ Visit http://localhost:8051 in your browser to access the UI of the demo. Use `l
237237

238238
</details>
239239

240-
### Audio Seperation
240+
### Audio Separation
241241

242-
<img style="width: 100%" src="https://raw.githubusercontent.com/ml-tooling/opyrator/main/docs/images/audio-seperation-demo.png"/>
242+
<img style="width: 100%" src="https://raw.githubusercontent.com/ml-tooling/opyrator/main/docs/images/audio-separation-demo.png"/>
243243

244-
- 📄&nbsp; [Source Code](https://github.com/ml-tooling/opyrator/blob/main/examples/seperate_audio/app.py)
244+
- 📄&nbsp; [Source Code](https://github.com/ml-tooling/opyrator/blob/main/examples/separate_audio/app.py)
245245
- 🌅&nbsp; [UI Demo](https://play.mltooling.com/opyrator/demos/seperate_audio_ui/)
246-
- 🔌&nbsp; [OpenAPI Spec](https://editor.swagger.io/?url=https://raw.githubusercontent.com/ml-tooling/opyrator/main/docs/openapi-demo-specs/seperate-audio-openapi-spec.json)
246+
- 🔌&nbsp; [OpenAPI Spec](https://editor.swagger.io/?url=https://raw.githubusercontent.com/ml-tooling/opyrator/main/docs/openapi-demo-specs/separate-audio-openapi-spec.json)
247247

248248
<details>
249249
<summary>Run this demo on your machine (click to expand...)</summary>
@@ -252,9 +252,9 @@ To run the demo on your local machine just execute the following commands:
252252

253253
```bash
254254
git clone https://github.com/ml-tooling/opyrator
255-
cd ./opyrator/examples/seperate_audio/
255+
cd ./opyrator/examples/separate_audio/
256256
pip install -r requirements.txt
257-
opyrator launch-ui app:seperate_audio --port 8051
257+
opyrator launch-ui app:separate_audio --port 8051
258258
```
259259

260260
Visit http://localhost:8051 in your browser to access the UI of the demo. Use `launch-api` instead of `launch-ui` to launch the HTTP API server.
225 KB
Loading

docs/openapi-demo-specs/seperate-audio-openapi-spec.json renamed to docs/openapi-demo-specs/separate-audio-openapi-spec.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"openapi": "3.0.2",
33
"info": {
4-
"title": "Seperate Audio - Opyrator",
5-
"description": "Seperation of a music file to vocals (singing voice) and accompaniment.\n\nTo try it out, you can use this example audio file: [audio_example.mp3](https://github.com/deezer/spleeter/raw/master/audio_example.mp3).",
4+
"title": "Separate Audio - Opyrator",
5+
"description": "Separation of a music file to vocals (singing voice) and accompaniment.\n\nTo try it out, you can use this example audio file: [audio_example.mp3](https://github.com/deezer/spleeter/raw/master/audio_example.mp3).",
66
"version": "0.1.0"
77
},
88
"paths": {
@@ -14,7 +14,7 @@
1414
"requestBody": {
1515
"content": {
1616
"application/json": {
17-
"schema": { "$ref": "#/components/schemas/AudioSeperationInput" }
17+
"schema": { "$ref": "#/components/schemas/AudioSeparationInput" }
1818
}
1919
},
2020
"required": true
@@ -25,7 +25,7 @@
2525
"content": {
2626
"application/json": {
2727
"schema": {
28-
"$ref": "#/components/schemas/AudioSeperationOutput"
28+
"$ref": "#/components/schemas/AudioSeparationOutput"
2929
}
3030
}
3131
}
@@ -64,8 +64,8 @@
6464
},
6565
"components": {
6666
"schemas": {
67-
"AudioSeperationInput": {
68-
"title": "AudioSeperationInput",
67+
"AudioSeparationInput": {
68+
"title": "AudioSeparationInput",
6969
"required": ["audio_file"],
7070
"type": "object",
7171
"properties": {
@@ -76,8 +76,8 @@
7676
}
7777
}
7878
},
79-
"AudioSeperationOutput": {
80-
"title": "AudioSeperationOutput",
79+
"AudioSeparationOutput": {
80+
"title": "AudioSeparationOutput",
8181
"required": ["vocals_file", "accompaniment_file"],
8282
"type": "object",
8383
"properties": {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
from opyrator.components.types import FileContent
99

1010

11-
class AudioSeperationInput(BaseModel):
11+
class AudioSeparationInput(BaseModel):
1212
audio_file: FileContent = Field(..., mime_type="audio/mpeg")
1313

1414

15-
class AudioSeperationOutput(BaseModel):
15+
class AudioSeparationOutput(BaseModel):
1616
vocals_file: FileContent = Field(
1717
...,
1818
mime_type="audio/wav",
@@ -25,8 +25,8 @@ class AudioSeperationOutput(BaseModel):
2525
)
2626

2727

28-
def seperate_audio(input: AudioSeperationInput) -> AudioSeperationOutput:
29-
"""Seperation of a music file to vocals (singing voice) and accompaniment.
28+
def separate_audio(input: AudioSeparationInput) -> AudioSeparationOutput:
29+
"""Separation of a music file to vocals (singing voice) and accompaniment.
3030
3131
To try it out, you can use this example audio file: [audio_example.mp3](https://github.com/deezer/spleeter/raw/master/audio_example.mp3).
3232
"""
@@ -52,6 +52,6 @@ def seperate_audio(input: AudioSeperationInput) -> AudioSeperationOutput:
5252
with open(os.path.join(tmp_dir, "accompaniment.wav"), "rb") as f:
5353
accompaniment_file = f.read()
5454

55-
return AudioSeperationOutput(
55+
return AudioSeparationOutput(
5656
vocals_file=vocals_file, accompaniment_file=accompaniment_file
5757
)

0 commit comments

Comments
 (0)