Update app.py
Browse files
app.py
CHANGED
@@ -64,12 +64,13 @@ def classify_audio(audio_file):
|
|
64 |
# Create the Gradio interface
|
65 |
interface = gr.Interface(
|
66 |
fn=classify_audio,
|
67 |
-
inputs=gr.Audio(
|
68 |
outputs=gr.Textbox(label="Predicted Class"),
|
69 |
title="Voice Disorder Classification",
|
70 |
description="Upload an audio file to classify its voice type (e.g., healthy or various disorder types).",
|
71 |
examples=["example_audio.wav"], # Replace with paths to example audio files
|
72 |
)
|
73 |
|
|
|
74 |
# Launch the Gradio app
|
75 |
interface.launch()
|
|
|
64 |
# Create the Gradio interface
|
65 |
interface = gr.Interface(
|
66 |
fn=classify_audio,
|
67 |
+
inputs=gr.Audio(type="filepath", label="Upload an Audio File"), # Removed 'source' argument
|
68 |
outputs=gr.Textbox(label="Predicted Class"),
|
69 |
title="Voice Disorder Classification",
|
70 |
description="Upload an audio file to classify its voice type (e.g., healthy or various disorder types).",
|
71 |
examples=["example_audio.wav"], # Replace with paths to example audio files
|
72 |
)
|
73 |
|
74 |
+
|
75 |
# Launch the Gradio app
|
76 |
interface.launch()
|