Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,11 @@ def classify_audio(filepath):
|
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
demo = gr.Interface(
|
| 16 |
-
fn=classify_audio,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
demo.launch(debug=True)
|
|
|
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
demo = gr.Interface(
|
| 16 |
+
fn=classify_audio,
|
| 17 |
+
inputs=gr.Audio(type="filepath"),
|
| 18 |
+
outputs="label",
|
| 19 |
+
examples = ['normal.wav', 'murmur.wav', 'extra_systole.wav', 'extra_hystole.wav', 'artifact.wav'],
|
| 20 |
+
theme = "dark"
|
| 21 |
)
|
| 22 |
|
| 23 |
demo.launch(debug=True)
|