Spaces:
Runtime error
Runtime error
Yu (Hope) Hou
commited on
Commit
Β·
5683255
1
Parent(s):
687204e
update general display strings
Browse files- app.py +12 -11
- src/about.py +3 -2
app.py
CHANGED
@@ -138,7 +138,7 @@ with demo:
|
|
138 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
139 |
|
140 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
141 |
-
with gr.TabItem("π
|
142 |
with gr.Row():
|
143 |
with gr.Column():
|
144 |
with gr.Row():
|
@@ -287,7 +287,7 @@ with demo:
|
|
287 |
|
288 |
with gr.Row():
|
289 |
with gr.Column():
|
290 |
-
model_name_textbox = gr.Textbox(label="Model name")
|
291 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
292 |
model_type = gr.Dropdown(
|
293 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
@@ -305,14 +305,15 @@ with demo:
|
|
305 |
value="float16",
|
306 |
interactive=True,
|
307 |
)
|
308 |
-
weight_type = gr.Dropdown(
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
)
|
315 |
-
|
|
|
316 |
|
317 |
submit_button = gr.Button("Submit Eval")
|
318 |
submission_result = gr.Markdown()
|
@@ -330,7 +331,7 @@ with demo:
|
|
330 |
)
|
331 |
|
332 |
with gr.Row():
|
333 |
-
with gr.Accordion("π
|
334 |
citation_button = gr.Textbox(
|
335 |
value=CITATION_BUTTON_TEXT,
|
336 |
label=CITATION_BUTTON_LABEL,
|
|
|
138 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
139 |
|
140 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
141 |
+
with gr.TabItem("π
System", elem_id="llm-benchmark-tab-table", id=0):
|
142 |
with gr.Row():
|
143 |
with gr.Column():
|
144 |
with gr.Row():
|
|
|
287 |
|
288 |
with gr.Row():
|
289 |
with gr.Column():
|
290 |
+
model_name_textbox = gr.Textbox(label="QA Model name")
|
291 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
292 |
model_type = gr.Dropdown(
|
293 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
|
|
305 |
value="float16",
|
306 |
interactive=True,
|
307 |
)
|
308 |
+
# weight_type = gr.Dropdown(
|
309 |
+
# choices=[i.value.name for i in WeightType],
|
310 |
+
# label="Weights type",
|
311 |
+
# multiselect=False,
|
312 |
+
# value="Original",
|
313 |
+
# interactive=True,
|
314 |
+
# )
|
315 |
+
weight_type = gr.Textbox(label="Retrieved dataset name")
|
316 |
+
base_model_name_textbox = gr.Textbox(label="Retriever model name")
|
317 |
|
318 |
submit_button = gr.Button("Submit Eval")
|
319 |
submission_result = gr.Markdown()
|
|
|
331 |
)
|
332 |
|
333 |
with gr.Row():
|
334 |
+
with gr.Accordion("π More about the task", open=False):
|
335 |
citation_button = gr.Textbox(
|
336 |
value=CITATION_BUTTON_TEXT,
|
337 |
label=CITATION_BUTTON_LABEL,
|
src/about.py
CHANGED
@@ -25,7 +25,7 @@ TITLE = """<h1 align="center" id="space-title">Grounded QA leaderboard</h1>"""
|
|
25 |
|
26 |
# What does your leaderboard evaluate?
|
27 |
INTRODUCTION_TEXT = """
|
28 |
-
|
29 |
"""
|
30 |
|
31 |
# Which evaluations are you running? how can people reproduce what you have?
|
@@ -41,6 +41,7 @@ EVALUATION_QUEUE_TEXT = """
|
|
41 |
We have the generative QA tutorial [here](https://docs.google.com/document/d/1ZwyEnrF7OjkDdNpEsiSU1RPEilepAmmFJZgVypzm9Es)!
|
42 |
"""
|
43 |
|
44 |
-
CITATION_BUTTON_LABEL = "Copy the following
|
45 |
CITATION_BUTTON_TEXT = r"""
|
|
|
46 |
"""
|
|
|
25 |
|
26 |
# What does your leaderboard evaluate?
|
27 |
INTRODUCTION_TEXT = """
|
28 |
+
Build an open-domain QA system that can answer any question posed by humans!
|
29 |
"""
|
30 |
|
31 |
# Which evaluations are you running? how can people reproduce what you have?
|
|
|
41 |
We have the generative QA tutorial [here](https://docs.google.com/document/d/1ZwyEnrF7OjkDdNpEsiSU1RPEilepAmmFJZgVypzm9Es)!
|
42 |
"""
|
43 |
|
44 |
+
CITATION_BUTTON_LABEL = "Copy the following link to check more details"
|
45 |
CITATION_BUTTON_TEXT = r"""
|
46 |
+
https://sites.google.com/view/qanta/home
|
47 |
"""
|