Yulu Fu commited on
Commit
88549e6
1 Parent(s): dab9a97

change gr.Audio source argument

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(source="microphone", 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."
 
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."