pavankumarvk commited on
Commit
7d4723c
·
verified ·
1 Parent(s): fd1c975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -43,10 +43,16 @@ video_interface = gr.Interface(
43
  title="Video Deepfake Detection",
44
  description="Upload a video to detect if it's real or fake (frame-by-frame analysis)"
45
  )
 
 
 
 
 
 
46
 
47
  app = gr.TabbedInterface(
48
- interface_list=[image_interface, video_interface],
49
- tab_names=['Image inference', 'Video inference'],
50
  css=custom_css
51
  )
52
 
 
43
  title="Video Deepfake Detection",
44
  description="Upload a video to detect if it's real or fake (frame-by-frame analysis)"
45
  )
46
+ audio_interface = gr.Interface(
47
+ fn=pipeline.deepfakes_audio_predict,
48
+ inputs=gr.Audio(),
49
+ outputs=gr.Textbox(),
50
+ title="Audio Deepfake Detection"
51
+ )
52
 
53
  app = gr.TabbedInterface(
54
+ [image_interface, video_interface, audio_interface],
55
+ ['Image inference', 'Video inference', 'Audio inference'],
56
  css=custom_css
57
  )
58