NidhiS09 commited on
Commit
c787f53
·
verified ·
1 Parent(s): 62b2681

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +32 -33
src/main.py CHANGED
@@ -221,39 +221,7 @@ def _load_leaderboard_df() -> pd.DataFrame:
221
  # =========================
222
  # UI
223
  # =========================
224
-
225
- def render_overview():
226
- with st.expander("ℹ️ Overview of the AI Benchmark Arena"):
227
- st.markdown(
228
- """
229
-
230
- **Note:** This Hugging Face Space queues submissions for evaluation and persists results in a private database repo.
231
- """
232
- )
233
- # Keep this optional so missing image doesn't crash the Space
234
- try:
235
- overview_image = Image.open("src/overview_image.png").resize((600, 600))
236
- st.image(overview_image, caption="Example of an object localization task")
237
- except Exception:
238
- st.info("Overview image not found at src/overview_image.png (optional).")
239
-
240
-
241
- def render_eval_details():
242
- with st.expander("📐 How is the Score Calculated?"):
243
- st.markdown(
244
- """
245
- Your submission is evaluated offline by a private evaluator against hidden ground-truth annotations.
246
- The leaderboard reports:
247
-
248
- - bbox_mAP
249
- - bbox_AP50
250
- - segm_mAP
251
- - segm_AP50 (default ranking)
252
-
253
- Raw submissions are kept private; only scores and metadata are shown.
254
- """
255
- )
256
-
257
 
258
  def page_submit():
259
  st.header("🚀 Submit your Predictions")
@@ -392,6 +360,37 @@ def main():
392
  else:
393
  page_leaderboard()
394
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
 
396
  if __name__ == "__main__":
397
  main()
 
221
  # =========================
222
  # UI
223
  # =========================
224
+ #2 FUNCTIONS WERE HERE, RENDER_OVERVIEW AND RENDER EVAL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
226
  def page_submit():
227
  st.header("🚀 Submit your Predictions")
 
360
  else:
361
  page_leaderboard()
362
 
363
+ def render_overview():
364
+ with st.expander("ℹ️ Overview of the AI Benchmark Arena"):
365
+ st.markdown(
366
+ """
367
+ **Note:** This Hugging Face Space queues submissions for evaluation and persists results in a private database repo.
368
+ """
369
+ )
370
+ # Keep this optional so missing image doesn't crash the Space
371
+ try:
372
+ overview_image = Image.open("src/overview_image.png").resize((600, 600))
373
+ st.image(overview_image, caption="Example of an object localization task")
374
+ except Exception:
375
+ st.info("Overview image not found at src/overview_image.png (optional).")
376
+
377
+
378
+ def render_eval_details():
379
+ with st.expander("📐 How is the Score Calculated?"):
380
+ st.markdown(
381
+ """
382
+ Your submission is evaluated offline by a private evaluator against hidden ground-truth annotations.
383
+ The leaderboard reports:
384
+
385
+ - bbox_mAP
386
+ - bbox_AP50
387
+ - segm_mAP
388
+ - segm_AP50 (default ranking)
389
+
390
+ Raw submissions are kept private; only scores and metadata are shown.
391
+ """
392
+ )
393
+
394
 
395
  if __name__ == "__main__":
396
  main()