Spaces:
Running
Running
Refactor about.py to improve code readability and maintainability
Browse files- src/about.md +1 -0
- src/about.py +5 -3
src/about.md
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
[GitHub](https://github.com/EvolvingLMMs-Lab/lmms-eval) | [HuggingFace Dataset](https://huggingface.co/datasets/lmms-lab/LiveBench) | [LeaderBoard](https://huggingface.co/spaces/lmms-lab/LiveBench)
|
src/about.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from dataclasses import dataclass
|
2 |
from enum import Enum
|
3 |
|
|
|
|
|
4 |
|
5 |
@dataclass
|
6 |
class Task:
|
@@ -25,9 +27,9 @@ NUM_FEWSHOT = 0 # Change with your few shot
|
|
25 |
TITLE = """<h1 align="center" id="space-title">Multimodal LiveBench: From Static to Live Evaluation</h1>"""
|
26 |
|
27 |
# What does your leaderboard evaluate?
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
# Which evaluations are you running? how can people reproduce what you have?
|
33 |
LLM_BENCHMARKS_TEXT = f"""
|
|
|
1 |
from dataclasses import dataclass
|
2 |
from enum import Enum
|
3 |
|
4 |
+
import os
|
5 |
+
|
6 |
|
7 |
@dataclass
|
8 |
class Task:
|
|
|
27 |
TITLE = """<h1 align="center" id="space-title">Multimodal LiveBench: From Static to Live Evaluation</h1>"""
|
28 |
|
29 |
# What does your leaderboard evaluate?
|
30 |
+
|
31 |
+
with open(os.path.join(os.path.dirname(__file__), "about.md"), "r") as f:
|
32 |
+
INTRODUCTION_TEXT = f.read()
|
33 |
|
34 |
# Which evaluations are you running? how can people reproduce what you have?
|
35 |
LLM_BENCHMARKS_TEXT = f"""
|