Spaces:
Runtime error
Runtime error
Hendrik Schroeter
commited on
Commit
•
42843b6
1
Parent(s):
3c652e4
add usage
Browse files- app.py +2 -0
- requirements.txt +1 -0
- usage.md +13 -0
app.py
CHANGED
@@ -5,6 +5,7 @@ import gradio
|
|
5 |
import gradio.inputs
|
6 |
import gradio.outputs
|
7 |
import matplotlib.pyplot as plt
|
|
|
8 |
import numpy as np
|
9 |
import torch
|
10 |
from df import config
|
@@ -227,5 +228,6 @@ iface = gradio.Interface(
|
|
227 |
description=description,
|
228 |
layout="horizontal",
|
229 |
allow_flagging="never",
|
|
|
230 |
)
|
231 |
iface.launch(cache_examples=False)
|
|
|
5 |
import gradio.inputs
|
6 |
import gradio.outputs
|
7 |
import matplotlib.pyplot as plt
|
8 |
+
import markdown
|
9 |
import numpy as np
|
10 |
import torch
|
11 |
from df import config
|
|
|
228 |
description=description,
|
229 |
layout="horizontal",
|
230 |
allow_flagging="never",
|
231 |
+
article=markdown.markdown(open("usage.md").read()),
|
232 |
)
|
233 |
iface.launch(cache_examples=False)
|
requirements.txt
CHANGED
@@ -2,4 +2,5 @@ torch
|
|
2 |
torchaudio
|
3 |
deepfilternet
|
4 |
matplotlib
|
|
|
5 |
gradio
|
|
|
2 |
torchaudio
|
3 |
deepfilternet
|
4 |
matplotlib
|
5 |
+
markdown
|
6 |
gradio
|
usage.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
**Usage:**
|
2 |
+
|
3 |
+
This demo takes a speech sample and a noise sample and mixes them at the provided signal to noise ratio (SNR).
|
4 |
+
You can either record a speech sample or alternatively provide one via upload.
|
5 |
+
Furthermore, you may upload a noise sample which will be mixed with the speech sample.
|
6 |
+
If no samples are provided, a default will be used.
|
7 |
+
|
8 |
+
DeepFilterNet [(link)](https://github.com/Rikorose/DeepFilterNet) is used to denoise the noisy mixture.
|
9 |
+
|
10 |
+
**Note:**
|
11 |
+
|
12 |
+
Before you edit the inputs (i.e. record a new sample), you need to clear all inputs and outputs.
|
13 |
+
Otherwise the output audio will not be updated.
|