Spaces:
Sleeping
Sleeping
Dongfu Jiang
commited on
Commit
•
f374c75
1
Parent(s):
b34b884
update
Browse files- _header.md +1 -2
- app.py +9 -2
_header.md
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
<br/>
|
2 |
|
3 |
-
# VAPO data demo
|
4 |
-
|
|
|
1 |
<br/>
|
2 |
|
3 |
+
# VAPO data demo
|
|
app.py
CHANGED
@@ -322,7 +322,15 @@ def build_demo(TYPES):
|
|
322 |
intent, checklist, strengths, weaknesses, feedback_score
|
323 |
])
|
324 |
|
325 |
-
with gr.TabItem("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
gr.Markdown(ABOUT_MD, elem_classes="markdown-text")
|
327 |
gr.Markdown(f"Last updated on **{LAST_UPDATED}**", elem_classes="markdown-text-small")
|
328 |
|
@@ -362,7 +370,6 @@ if __name__ == "__main__":
|
|
362 |
available_feedback_scores = sorted(list(set([item['feedback']['processed']['score'] for item in dataset])))
|
363 |
available_categories = sorted(list(set(dataset['category'])))
|
364 |
available_revision_better = sorted(list(set([item['pair_feedback']['revision_better'] for item in dataset])))
|
365 |
-
|
366 |
|
367 |
TYPES = ["markdown", "number"]
|
368 |
|
|
|
322 |
intent, checklist, strengths, weaknesses, feedback_score
|
323 |
])
|
324 |
|
325 |
+
with gr.TabItem("📊 Templates", elem_id="od-benchmark-tab-table", id=3):
|
326 |
+
leading_text = """Here are the templates we used in the VAPO framework.
|
327 |
+
To comment on the template, click the following links:
|
328 |
+
- [Feedback template (1-shot)](https://hackmd.io/@nVvBa9WFT4SUUDHwIWaP8w/Sy7YEKuKC)
|
329 |
+
- [Revision template (0-shot)](https://hackmd.io/@nVvBa9WFT4SUUDHwIWaP8w/rkhgLKOFC)
|
330 |
+
- [2nd Stage Feedback template (Pairwise)](https://hackmd.io/@nVvBa9WFT4SUUDHwIWaP8w/By8QUtOKC)"""
|
331 |
+
gr.Markdown(leading_text, elem_classes="markdown-text")
|
332 |
+
|
333 |
+
with gr.TabItem("📮 About Us", elem_id="od-benchmark-tab-table", id=4, visible=False):
|
334 |
gr.Markdown(ABOUT_MD, elem_classes="markdown-text")
|
335 |
gr.Markdown(f"Last updated on **{LAST_UPDATED}**", elem_classes="markdown-text-small")
|
336 |
|
|
|
370 |
available_feedback_scores = sorted(list(set([item['feedback']['processed']['score'] for item in dataset])))
|
371 |
available_categories = sorted(list(set(dataset['category'])))
|
372 |
available_revision_better = sorted(list(set([item['pair_feedback']['revision_better'] for item in dataset])))
|
|
|
373 |
|
374 |
TYPES = ["markdown", "number"]
|
375 |
|