Update app.py
Browse files
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 |
-
|
| 49 |
-
|
| 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 |
|