Spaces:
Runtime error
Runtime error
File size: 680 Bytes
be81b44 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import gradio as gr
import inference_2 as inference
title="DEEPDETECT"
description="Deepfake detection"
video_inf = gr.Interface(inference.df_video_pred,
gr.Video(),
"text",
cache_examples = False
)
image_inf = gr.Interface(inference.df_img_pred,
gr.Image(),
"text",
cache_examples=False
)
app = gr.TabbedInterface(interface_list= [image_inf, video_inf],
tab_names = ['Image inference', 'Video inference'])
if __name__ == '__main__':
app.launch(share = True) |