Teapack1 commited on
Commit
b9908bd
1 Parent(s): 7b88933

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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="numpy", label="Record your audio"),
21
- outputs="label",
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
  )