Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
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."
|