LPX
commited on
Commit
·
af8c793
1
Parent(s):
c9bd39d
feat(app): add model evaluation playground
Browse files- Adds a new tab for model evaluations and playground with enhanced user interface
feat(dependencies): update python dependencies
- Adds an additional interface of leaderboard on UI
- Adds new dependencies to support enhanced user interface.
- Update requirement.txt returning newline at the end of file
- Returns Video Base Offsetting API using ModelScope and OpenCV libraries for processing
- app.py +2 -2
- requirements.txt +3 -1
app.py
CHANGED
@@ -248,7 +248,7 @@ def predict_image_with_html(img, confidence_threshold, augment_methods, rotate_d
|
|
248 |
with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;}") as iface:
|
249 |
with gr.Accordion("Project OpenSight - Model Evaluations & Playground", open=False, elem_id="project_accordion"):
|
250 |
gr.Markdown("## OpenSight is a SOTA gen. image detection model, in pre-release prep.\n\nThis HF Space is a temporary home for us and the public to evaluate the shortcomings of current open source models.\n\n<-- Feel free to play around by starting with an image as we prepare our formal announcement.")
|
251 |
-
with gr.Tab("
|
252 |
gr.Markdown("# AI Generated Image / Deepfake Detection Models Evaluation")
|
253 |
|
254 |
with gr.Row():
|
@@ -302,7 +302,7 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
|
|
302 |
outputs=[]
|
303 |
)
|
304 |
|
305 |
-
with gr.Tab("
|
306 |
# Add components for the second interface here
|
307 |
gr.Markdown("# Another Interface")
|
308 |
with gr.Sidebar():
|
|
|
248 |
with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;}") as iface:
|
249 |
with gr.Accordion("Project OpenSight - Model Evaluations & Playground", open=False, elem_id="project_accordion"):
|
250 |
gr.Markdown("## OpenSight is a SOTA gen. image detection model, in pre-release prep.\n\nThis HF Space is a temporary home for us and the public to evaluate the shortcomings of current open source models.\n\n<-- Feel free to play around by starting with an image as we prepare our formal announcement.")
|
251 |
+
with gr.Tab("👀 Model Evals / Playground"):
|
252 |
gr.Markdown("# AI Generated Image / Deepfake Detection Models Evaluation")
|
253 |
|
254 |
with gr.Row():
|
|
|
302 |
outputs=[]
|
303 |
)
|
304 |
|
305 |
+
with gr.Tab("🥇 Leaderboard"):
|
306 |
# Add components for the second interface here
|
307 |
gr.Markdown("# Another Interface")
|
308 |
with gr.Sidebar():
|
requirements.txt
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
gradio
|
|
|
2 |
transformers
|
3 |
huggingface_hub
|
4 |
torchvision
|
5 |
torch
|
6 |
spaces
|
7 |
pillow
|
8 |
-
opencv-python
|
|
|
|
1 |
gradio
|
2 |
+
gradio_leaderboard
|
3 |
transformers
|
4 |
huggingface_hub
|
5 |
torchvision
|
6 |
torch
|
7 |
spaces
|
8 |
pillow
|
9 |
+
opencv-python
|
10 |
+
modelscope_studio
|