Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,9 @@ CLASS_NAMES = {
|
|
| 85 |
"model_7": ['Fake', 'Real'],
|
| 86 |
|
| 87 |
}
|
| 88 |
-
|
|
|
|
|
|
|
| 89 |
# Load models and processors
|
| 90 |
def load_models():
|
| 91 |
image_processor_1 = AutoImageProcessor.from_pretrained(MODEL_PATHS["model_1"], use_fast=True)
|
|
@@ -349,7 +351,11 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
|
|
| 349 |
inputs=[],
|
| 350 |
outputs=[]
|
| 351 |
)
|
| 352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
with gr.Tab("🥇 Leaderboard"):
|
| 354 |
gr.Markdown("# AI Generated / Deepfake Detection Models Leaderboard: Soon™")
|
| 355 |
|
|
|
|
| 85 |
"model_7": ['Fake', 'Real'],
|
| 86 |
|
| 87 |
}
|
| 88 |
+
def load_space(space_name):
|
| 89 |
+
return gr.load(f"spaces/{space_name}")
|
| 90 |
+
|
| 91 |
# Load models and processors
|
| 92 |
def load_models():
|
| 93 |
image_processor_1 = AutoImageProcessor.from_pretrained(MODEL_PATHS["model_1"], use_fast=True)
|
|
|
|
| 351 |
inputs=[],
|
| 352 |
outputs=[]
|
| 353 |
)
|
| 354 |
+
with gr.Tab("👑 Community Forensics Preview"):
|
| 355 |
+
gr.TabItem("Temp Preview"):
|
| 356 |
+
preview = gr.load("aiwithoutborders-xyz/OpenSight-Community-Forensics-Preview")
|
| 357 |
+
preview.render() # no idea if this will work
|
| 358 |
+
space2.render()
|
| 359 |
with gr.Tab("🥇 Leaderboard"):
|
| 360 |
gr.Markdown("# AI Generated / Deepfake Detection Models Leaderboard: Soon™")
|
| 361 |
|