sancho10 commited on
Commit
0b747fe
·
verified ·
1 Parent(s): aa1b4d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(source="upload", type="filepath", label="Upload an Audio File"),
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()