Kabatubare commited on
Commit
90d10cd
·
verified ·
1 Parent(s): ccce4a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,11 +86,11 @@ iface = gr.Interface(
86
  inputs=gr.Audio(label="Upload Audio File", type="filepath"),
87
  outputs=[
88
  gr.Textbox(label="Prediction"),
89
- gr.Plot(label="Waveform"),
90
- gr.Plot(label="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."
94
  )
95
 
96
- iface.launch()
 
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."
94
  )
95
 
96
+ iface.launch()