Spaces:
Sleeping
Sleeping
Commit ·
7b11221
1
Parent(s): 8792ec4
Fixed Audio Input
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def predict_accent(audio):
|
|
| 55 |
# Gradio UI
|
| 56 |
interface = gr.Interface(
|
| 57 |
fn=predict_accent,
|
| 58 |
-
inputs=gr.Audio(
|
| 59 |
outputs=gr.Textbox(label="Predicted Accent"),
|
| 60 |
title="Accent Classification",
|
| 61 |
description="This app classifies English accents as either Canadian or England using a fine-tuned Wav2Vec2 model.",
|
|
|
|
| 55 |
# Gradio UI
|
| 56 |
interface = gr.Interface(
|
| 57 |
fn=predict_accent,
|
| 58 |
+
inputs=gr.Audio(sources=["upload", "microphone"], type="filepath", label="Upload or Record Audio (WAV)"),
|
| 59 |
outputs=gr.Textbox(label="Predicted Accent"),
|
| 60 |
title="Accent Classification",
|
| 61 |
description="This app classifies English accents as either Canadian or England using a fine-tuned Wav2Vec2 model.",
|