Spaces:
Runtime error
Runtime error
Yulu Fu
commited on
change gr.Audio source argument
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def predict(audio):
|
|
| 11 |
# Create the Gradio interface
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=predict,
|
| 14 |
-
inputs=gr.Audio(
|
| 15 |
outputs="label",
|
| 16 |
title="Deepfake Audio Detection",
|
| 17 |
description="Upload an audio file or record your voice to detect if the audio is a deepfake."
|
|
|
|
| 11 |
# Create the Gradio interface
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=predict,
|
| 14 |
+
inputs=gr.Audio(type="filepath"),
|
| 15 |
outputs="label",
|
| 16 |
title="Deepfake Audio Detection",
|
| 17 |
description="Upload an audio file or record your voice to detect if the audio is a deepfake."
|