Spaces:
Build error
Build error
Update
Browse files- app.py +1 -5
- desc3.png → assets/desc3.png +0 -0
app.py
CHANGED
|
@@ -10,10 +10,6 @@ from pycocotools.cocoeval import COCOeval
|
|
| 10 |
# Log in programmatically using token from secrets.
|
| 11 |
login(token=os.getenv("HF_TOKEN"))
|
| 12 |
|
| 13 |
-
import base64
|
| 14 |
-
with open("desc3.png", "rb") as f:
|
| 15 |
-
image_data = f.read()
|
| 16 |
-
encoded_image = base64.b64encode(image_data).decode("utf-8")
|
| 17 |
|
| 18 |
|
| 19 |
# ---------- CSV to COCO Conversion Functions ----------
|
|
@@ -254,7 +250,7 @@ def evaluate_and_refresh(file, submission_name, model_description, link_paper, l
|
|
| 254 |
with gr.Blocks() as demo:
|
| 255 |
gr.Markdown("# Benchmark Leaderboard: Object Detection mAP@50 & Weight MAE Evaluation")
|
| 256 |
#gr.Image(value="desc3.png", label=None, interactive=False)
|
| 257 |
-
gr.HTML(
|
| 258 |
gr.Markdown(
|
| 259 |
"This leaderboard evaluates CSV submissions using **mAP@50** (via COCO evaluation) for bounding boxes "
|
| 260 |
"and **Mean Absolute Error (MAE)** for food weight predictions. \n\n"
|
|
|
|
| 10 |
# Log in programmatically using token from secrets.
|
| 11 |
login(token=os.getenv("HF_TOKEN"))
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
# ---------- CSV to COCO Conversion Functions ----------
|
|
|
|
| 250 |
with gr.Blocks() as demo:
|
| 251 |
gr.Markdown("# Benchmark Leaderboard: Object Detection mAP@50 & Weight MAE Evaluation")
|
| 252 |
#gr.Image(value="desc3.png", label=None, interactive=False)
|
| 253 |
+
gr.HTML('<img src="static/desc3.png" alt="Description" style="max-width:100%;height:auto;">')
|
| 254 |
gr.Markdown(
|
| 255 |
"This leaderboard evaluates CSV submissions using **mAP@50** (via COCO evaluation) for bounding boxes "
|
| 256 |
"and **Mean Absolute Error (MAE)** for food weight predictions. \n\n"
|
desc3.png → assets/desc3.png
RENAMED
|
File without changes
|