Spaces:
Running
Running
Minette Kaunismäki commited on
Commit ·
0fa1882
1
Parent(s): 754a227
changing inferbench to p-bench
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🥇
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: indigo
|
|
@@ -12,7 +12,7 @@ tags:
|
|
| 12 |
- leaderboard
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
Evaluate the quality and efficiency of image gen api's.
|
| 18 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: P-Bench
|
| 3 |
emoji: 🥇
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: indigo
|
|
|
|
| 12 |
- leaderboard
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# P-Bench
|
| 16 |
|
| 17 |
Evaluate the quality and efficiency of image gen api's.
|
| 18 |
|
app.py
CHANGED
|
@@ -169,7 +169,7 @@ body, .gradio-container {
|
|
| 169 |
max-width: 100% !important;
|
| 170 |
}
|
| 171 |
|
| 172 |
-
/* —— App header (
|
| 173 |
.app-header-host,
|
| 174 |
.app-header-host .html-container,
|
| 175 |
.app-header-host .prose,
|
|
@@ -2608,7 +2608,11 @@ custom_head = """
|
|
| 2608 |
"""
|
| 2609 |
|
| 2610 |
with gr.Blocks(
|
| 2611 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2612 |
) as demo:
|
| 2613 |
render_header()
|
| 2614 |
with gr.Tabs(elem_classes="main-tabs"):
|
|
|
|
| 169 |
max-width: 100% !important;
|
| 170 |
}
|
| 171 |
|
| 172 |
+
/* —— App header (P-Bench only) —— */
|
| 173 |
.app-header-host,
|
| 174 |
.app-header-host .html-container,
|
| 175 |
.app-header-host .prose,
|
|
|
|
| 2608 |
"""
|
| 2609 |
|
| 2610 |
with gr.Blocks(
|
| 2611 |
+
title="P-Bench",
|
| 2612 |
+
theme=theme,
|
| 2613 |
+
fill_width=True,
|
| 2614 |
+
css=custom_css,
|
| 2615 |
+
head=custom_head,
|
| 2616 |
) as demo:
|
| 2617 |
render_header()
|
| 2618 |
with gr.Tabs(elem_classes="main-tabs"):
|
ui.py
CHANGED
|
@@ -21,11 +21,11 @@ DEFAULT_COMPARE_PROMPTS = 3
|
|
| 21 |
MAX_COMPARE_PROMPTS = 8
|
| 22 |
|
| 23 |
ABOUT_OVERVIEW_CONTENT = """
|
| 24 |
-
# About
|
| 25 |
|
| 26 |
-
|
| 27 |
endpoints, on **quality, speed, and price**. Results are split by prompt suite;
|
| 28 |
-
there is no single score across
|
| 29 |
|
| 30 |
## How to read it
|
| 31 |
|
|
@@ -136,8 +136,8 @@ FOOTER_CONTENT = """
|
|
| 136 |
|
| 137 |
CITATION_CONTENT = """
|
| 138 |
```bibtex
|
| 139 |
-
@misc{
|
| 140 |
-
title={
|
| 141 |
author={PrunaAI},
|
| 142 |
year={2026},
|
| 143 |
howpublished={\\url{https://huggingface.co/spaces/PrunaAI/InferBench}}
|
|
@@ -161,7 +161,7 @@ def render_header():
|
|
| 161 |
</button>
|
| 162 |
<div class="app-header-brand">
|
| 163 |
<img class="app-header-logo" src="{_MASCOT_DATA_URI}" alt="" />
|
| 164 |
-
<h1>
|
| 165 |
</div>
|
| 166 |
<p class="app-header-tagline">Compare text-to-image models on quality, speed, and price</p>
|
| 167 |
</header>
|
|
@@ -230,7 +230,7 @@ def render_home(benchmarks):
|
|
| 230 |
|
| 231 |
gr.Markdown(
|
| 232 |
"""
|
| 233 |
-
|
| 234 |
the same prompt suites. Open a benchmark for tables, Pareto graphs, and
|
| 235 |
sample comparisons.
|
| 236 |
""",
|
|
|
|
| 21 |
MAX_COMPARE_PROMPTS = 8
|
| 22 |
|
| 23 |
ABOUT_OVERVIEW_CONTENT = """
|
| 24 |
+
# About P-Bench
|
| 25 |
|
| 26 |
+
P-Bench compares **text-to-image models**, including optimized or accelerated
|
| 27 |
endpoints, on **quality, speed, and price**. Results are split by prompt suite;
|
| 28 |
+
there is no single score across P-Bench.
|
| 29 |
|
| 30 |
## How to read it
|
| 31 |
|
|
|
|
| 136 |
|
| 137 |
CITATION_CONTENT = """
|
| 138 |
```bibtex
|
| 139 |
+
@misc{P-Bench,
|
| 140 |
+
title={P-Bench: A Leaderboard for Text-to-Image Models},
|
| 141 |
author={PrunaAI},
|
| 142 |
year={2026},
|
| 143 |
howpublished={\\url{https://huggingface.co/spaces/PrunaAI/InferBench}}
|
|
|
|
| 161 |
</button>
|
| 162 |
<div class="app-header-brand">
|
| 163 |
<img class="app-header-logo" src="{_MASCOT_DATA_URI}" alt="" />
|
| 164 |
+
<h1>P-Bench</h1>
|
| 165 |
</div>
|
| 166 |
<p class="app-header-tagline">Compare text-to-image models on quality, speed, and price</p>
|
| 167 |
</header>
|
|
|
|
| 230 |
|
| 231 |
gr.Markdown(
|
| 232 |
"""
|
| 233 |
+
P-Bench ranks **text-to-image models** on quality, speed, and price using
|
| 234 |
the same prompt suites. Open a benchmark for tables, Pareto graphs, and
|
| 235 |
sample comparisons.
|
| 236 |
""",
|