File size: 692 Bytes
c379def
 
 
 
 
 
 
 
 
 
 
 
 
3af08fb
c379def
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
from utils import *
    
with gr.Blocks() as demo:
    gr.Markdown("# RESIDUAL-BASED FORENSIC COMPARISON OF VIDEO SEQUENCES")
    with gr.Tab(""):
        with gr.Row():
            with gr.Column():
                v1 = gr.Video(label="Forged Video")
                v2 = gr.Video(label="Orignal Video")
            encrypt_output = gr.Video(label="Mahalanobis distance")
            decrypt_output = gr.Textbox(lines=1, label="output")
        encrypt_button = gr.Button("Process")
    gr.Markdown("It takes around 10min to process 10sec videos")

    encrypt_button.click(final_main, inputs=[v1, v2 ], outputs=[encrypt_output,decrypt_output])

demo.launch(share=False);