add mp3 support for audio

This commit is contained in:
Ali Abid 2021-03-11 11:08:32 -08:00
parent bd7ac25203
commit 1362cbbee4
4 changed files with 10 additions and 2 deletions

View File

@ -39,7 +39,7 @@ def main_note(audio):
iface = gr.Interface(
main_note,
"microphone",
"audio",
gr.outputs.Label(num_top_classes=4),
examples=[
["audio/recording1.wav"],

View File

@ -11,4 +11,6 @@ scikit-image
analytics-python
pandas
ffmpy
librosa
colorama>=0.3.9
markdown2

View File

@ -104,7 +104,11 @@ button.submit {
background-color: #e67e22;
color: white;
}
.panel_button:hover {
.panel_button.inactive {
color: lightgray;
cursor: not-allowed;
}
.panel_button:not(.inactive):hover {
background-color: lightgray;
}
button.submit:hover {

View File

@ -27,6 +27,8 @@ setup(
'analytics-python',
'pandas',
'ffmpy',
'librosa',
'colorama >= 0.3.9',
'markdown2'
],
)