Abraham E. Tavarez
commited on
Commit
·
99c30b7
1
Parent(s):
ef9e684
gradio initial UI
Browse files
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def start_scan(image, audio):
|
4 |
+
return "Scanning in progress...", None
|
5 |
+
|
6 |
+
with gr.Blocks(title="Deepfake Watchdog") as app:
|
7 |
+
gr.Markdown("## 🛡️ Deepfake Watchdog\nUpload your image and/or voice to scan for deepfake misuse online.")
|
8 |
+
|
9 |
+
with gr.Row():
|
10 |
+
image = gr.Image(label="Upload your face", type="filepath")
|
11 |
+
audio = gr.Audio(label="Upload your voice (optional)", type="filepath")
|
12 |
+
|
13 |
+
run_button = gr.Button("Start Scan")
|
14 |
+
output_text = gr.Textbox(label="Status")
|
15 |
+
output_gallery = gr.Gallery(label="Matched Results")
|
16 |
+
|
17 |
+
run_button.click(start_scan, inputs=[image, audio], outputs=[output_text, output_gallery])
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
app.launch(mcp_server=True)
|