refactor: comment out simple prediction interface and update demo tab titles for clarity
Browse files
app.py
CHANGED
|
@@ -477,14 +477,14 @@ leaderboard = gr.Interface(
|
|
| 477 |
api_name="leaderboard"
|
| 478 |
)
|
| 479 |
|
| 480 |
-
simple_predict_interface = gr.Interface(
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
)
|
| 488 |
|
| 489 |
noise_estimation_interface = gr.Interface(
|
| 490 |
fn=noise_estimation,
|
|
@@ -556,7 +556,7 @@ minmax_processing_interface = gr.Interface(
|
|
| 556 |
demo = gr.TabbedInterface(
|
| 557 |
[
|
| 558 |
detection_model_eval_playground,
|
| 559 |
-
|
| 560 |
noise_estimation_interface,
|
| 561 |
bit_plane_interface,
|
| 562 |
ela_interface,
|
|
@@ -565,13 +565,16 @@ demo = gr.TabbedInterface(
|
|
| 565 |
],
|
| 566 |
[
|
| 567 |
"Run Ensemble Prediction",
|
| 568 |
-
"
|
| 569 |
"Wavelet Blocking Noise Estimation",
|
| 570 |
"Bit Plane Values",
|
| 571 |
"Error Level Analysis (ELA)",
|
| 572 |
"Gradient Processing",
|
| 573 |
"MinMax Processing"
|
| 574 |
-
]
|
|
|
|
|
|
|
|
|
|
| 575 |
)
|
| 576 |
|
| 577 |
if __name__ == "__main__":
|
|
|
|
| 477 |
api_name="leaderboard"
|
| 478 |
)
|
| 479 |
|
| 480 |
+
# simple_predict_interface = gr.Interface(
|
| 481 |
+
# fn=simple_prediction,
|
| 482 |
+
# inputs=gr.Image(type="filepath"),
|
| 483 |
+
# outputs=gr.Text(),
|
| 484 |
+
# title="Quick and simple prediction by our strongest model.",
|
| 485 |
+
# description="No ensemble, no context, no agents, just a quick and simple prediction by our strongest model.",
|
| 486 |
+
# api_name="simple_predict"
|
| 487 |
+
# )
|
| 488 |
|
| 489 |
noise_estimation_interface = gr.Interface(
|
| 490 |
fn=noise_estimation,
|
|
|
|
| 556 |
demo = gr.TabbedInterface(
|
| 557 |
[
|
| 558 |
detection_model_eval_playground,
|
| 559 |
+
community_forensics_preview,
|
| 560 |
noise_estimation_interface,
|
| 561 |
bit_plane_interface,
|
| 562 |
ela_interface,
|
|
|
|
| 565 |
],
|
| 566 |
[
|
| 567 |
"Run Ensemble Prediction",
|
| 568 |
+
"Community Model",
|
| 569 |
"Wavelet Blocking Noise Estimation",
|
| 570 |
"Bit Plane Values",
|
| 571 |
"Error Level Analysis (ELA)",
|
| 572 |
"Gradient Processing",
|
| 573 |
"MinMax Processing"
|
| 574 |
+
],
|
| 575 |
+
title="Deepfake Detection & Forensics Tools",
|
| 576 |
+
theme=None,
|
| 577 |
+
|
| 578 |
)
|
| 579 |
|
| 580 |
if __name__ == "__main__":
|