app.py
CHANGED
@@ -35,7 +35,7 @@ def classify_sound(file_path):
|
|
35 |
|
36 |
demo = gr.Interface(
|
37 |
fn=classify_sound,
|
38 |
-
inputs=gr.Audio(
|
39 |
outputs=gr.Label(num_top_classes=5),
|
40 |
title="Audio Classification with AST",
|
41 |
description="Upload an audio clip (speech, music, ambient sound, etc.). Model: MIT AST fine-tuned on AudioSet (10 classes).",
|
|
|
35 |
|
36 |
demo = gr.Interface(
|
37 |
fn=classify_sound,
|
38 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
39 |
outputs=gr.Label(num_top_classes=5),
|
40 |
title="Audio Classification with AST",
|
41 |
description="Upload an audio clip (speech, music, ambient sound, etc.). Model: MIT AST fine-tuned on AudioSet (10 classes).",
|