Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ description = "Gradio demo for finetuned Wav2Vec2 model on a custom dataset to p
|
|
13 |
def classify_audio(audio):
|
14 |
predictions = audio_classifier(audio)
|
15 |
return predictions
|
16 |
-
|
17 |
|
|
|
18 |
iface = gr.Interface(
|
19 |
fn=classify_audio,
|
20 |
-
inputs=gr.inputs.Audio(source="microphone", type="
|
21 |
-
outputs=
|
22 |
title="Audio Classification Demo",
|
23 |
description="A simple demo to classify audio using a Hugging Face model."
|
24 |
)
|
|
|
13 |
def classify_audio(audio):
|
14 |
predictions = audio_classifier(audio)
|
15 |
return predictions
|
|
|
16 |
|
17 |
+
|
18 |
iface = gr.Interface(
|
19 |
fn=classify_audio,
|
20 |
+
inputs=gr.inputs.Audio(source="microphone", type="filepath", label="Record your audio"),
|
21 |
+
outputs=gr.outputs.Label(),
|
22 |
title="Audio Classification Demo",
|
23 |
description="A simple demo to classify audio using a Hugging Face model."
|
24 |
)
|