|
import gradio as gr |
|
|
|
def start_scan(image, audio): |
|
return "Scanning in progress...", None |
|
|
|
with gr.Blocks(title="Deepfake Watchdog") as app: |
|
gr.Markdown("## 🛡️ Deepfake Watchdog\nUpload your image and/or voice to scan for deepfake misuse online.") |
|
|
|
with gr.Row(): |
|
image = gr.Image(label="Upload your face", type="filepath") |
|
audio = gr.Audio(label="Upload your voice (optional)", type="filepath") |
|
|
|
run_button = gr.Button("Start Scan") |
|
output_text = gr.Textbox(label="Status") |
|
output_gallery = gr.Gallery(label="Matched Results") |
|
|
|
run_button.click(start_scan, inputs=[image, audio], outputs=[output_text, output_gallery]) |
|
|
|
|
|
|
|
|
|
app.launch(mcp_server=True) |