Kabatubare commited on
Commit
9f2fc99
1 Parent(s): 90d10cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,8 +86,8 @@ iface = gr.Interface(
86
  inputs=gr.Audio(label="Upload Audio File", type="filepath"),
87
  outputs=[
88
  gr.Textbox(label="Prediction"),
89
- gr.Image(label="Waveform", tool="editor"), # Use Image component for waveform
90
- gr.Image(label="Spectrogram", tool="editor") # Use Image component for spectrogram
91
  ],
92
  title="Voice Clone Detection",
93
  description="Detects whether a voice is real or an AI-generated clone. Upload an audio file to see the results."
 
86
  inputs=gr.Audio(label="Upload Audio File", type="filepath"),
87
  outputs=[
88
  gr.Textbox(label="Prediction"),
89
+ gr.Image(label="Waveform"), # Adjusted to remove unsupported 'tool' argument
90
+ gr.Image(label="Spectrogram") # Adjusted to remove unsupported 'tool' argument
91
  ],
92
  title="Voice Clone Detection",
93
  description="Detects whether a voice is real or an AI-generated clone. Upload an audio file to see the results."