Kabatubare commited on
Commit
8d34e4a
·
verified ·
1 Parent(s): 50facbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def predict_voice(audio_file_path):
42
 
43
  iface = gr.Interface(
44
  fn=predict_voice,
45
- inputs=gr.Audio(label="Upload Audio File", type="file"),
46
  outputs=gr.Text(label="Prediction"),
47
  title="Voice Authenticity Detection",
48
  description="Detects whether a voice is real or AI-generated. Upload an audio file to see the results."
 
42
 
43
  iface = gr.Interface(
44
  fn=predict_voice,
45
+ inputs=gr.Audio(label="Upload Audio File", type="filepath"), # Corrected 'type' parameter
46
  outputs=gr.Text(label="Prediction"),
47
  title="Voice Authenticity Detection",
48
  description="Detects whether a voice is real or AI-generated. Upload an audio file to see the results."