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