Skip to content

Commit

Permalink
Fix typo: seperate -> separate (#20)
Browse files Browse the repository at this point in the history
* Fix typo: seperate -> separate
  • Loading branch information
raethlein committed Apr 30, 2021
1 parent e8d1f66 commit b0fc648
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ Visit http://localhost:8051 in your browser to access the UI of the demo. Use `l

</details>

### Audio Seperation
### Audio Separation

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

- 📄&nbsp; [Source Code](https://github.com/ml-tooling/opyrator/blob/main/examples/seperate_audio/app.py)
- 📄&nbsp; [Source Code](https://github.com/ml-tooling/opyrator/blob/main/examples/separate_audio/app.py)
- 🌅&nbsp; [UI Demo](https://play.mltooling.com/opyrator/demos/seperate_audio_ui/)
- 🔌&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)
- 🔌&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)

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

```bash
git clone https://github.com/ml-tooling/opyrator
cd ./opyrator/examples/seperate_audio/
cd ./opyrator/examples/separate_audio/
pip install -r requirements.txt
opyrator launch-ui app:seperate_audio --port 8051
opyrator launch-ui app:separate_audio --port 8051
```

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.
Expand Down
Binary file added docs/images/audio-separation-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"openapi": "3.0.2",
"info": {
"title": "Seperate Audio - Opyrator",
"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).",
"title": "Separate Audio - Opyrator",
"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).",
"version": "0.1.0"
},
"paths": {
Expand All @@ -14,7 +14,7 @@
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/AudioSeperationInput" }
"schema": { "$ref": "#/components/schemas/AudioSeparationInput" }
}
},
"required": true
Expand All @@ -25,7 +25,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AudioSeperationOutput"
"$ref": "#/components/schemas/AudioSeparationOutput"
}
}
}
Expand Down Expand Up @@ -64,8 +64,8 @@
},
"components": {
"schemas": {
"AudioSeperationInput": {
"title": "AudioSeperationInput",
"AudioSeparationInput": {
"title": "AudioSeparationInput",
"required": ["audio_file"],
"type": "object",
"properties": {
Expand All @@ -76,8 +76,8 @@
}
}
},
"AudioSeperationOutput": {
"title": "AudioSeperationOutput",
"AudioSeparationOutput": {
"title": "AudioSeparationOutput",
"required": ["vocals_file", "accompaniment_file"],
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from opyrator.components.types import FileContent


class AudioSeperationInput(BaseModel):
class AudioSeparationInput(BaseModel):
audio_file: FileContent = Field(..., mime_type="audio/mpeg")


class AudioSeperationOutput(BaseModel):
class AudioSeparationOutput(BaseModel):
vocals_file: FileContent = Field(
...,
mime_type="audio/wav",
Expand All @@ -25,8 +25,8 @@ class AudioSeperationOutput(BaseModel):
)


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

return AudioSeperationOutput(
return AudioSeparationOutput(
vocals_file=vocals_file, accompaniment_file=accompaniment_file
)
File renamed without changes.

0 comments on commit b0fc648

Please sign in to comment.