Spaces:
Running
Running
Improved wording
Browse files
app.py
CHANGED
@@ -321,26 +321,23 @@ if __name__ == "__main__":
|
|
321 |
with gr.Blocks(theme='default', css=CSS_STYLES) as demo:
|
322 |
judge_id = gr.State(get_new_session_id())
|
323 |
gr.Markdown(MAIN_TITLE)
|
324 |
-
gr.Markdown(
|
325 |
|
326 |
with gr.Tabs():
|
327 |
with gr.TabItem("Judge Arena"):
|
328 |
-
gr.Markdown(HOW_IT_WORKS)
|
329 |
|
330 |
with gr.Row():
|
331 |
with gr.Column():
|
332 |
gr.Markdown(BATTLE_RULES)
|
333 |
-
|
334 |
-
# Add heading for Eval Prompt
|
335 |
-
gr.Markdown("\n")
|
336 |
|
337 |
# Eval Prompt and Variables side by side
|
338 |
with gr.Row():
|
339 |
# Left column - Eval Prompt
|
340 |
with gr.Column(scale=1):
|
341 |
eval_prompt = gr.TextArea(
|
342 |
-
label="
|
343 |
-
lines=1,
|
344 |
value=DEFAULT_EVAL_PROMPT,
|
345 |
placeholder="Type your eval prompt here... denote variables in {{curly brackets}} to be populated on the right.",
|
346 |
show_label=True
|
@@ -348,7 +345,7 @@ with gr.Blocks(theme='default', css=CSS_STYLES) as demo:
|
|
348 |
|
349 |
# Right column - Variable Mapping
|
350 |
with gr.Column(scale=1):
|
351 |
-
gr.Markdown("###
|
352 |
# Create inputs for up to 5 variables, with first two visible by default
|
353 |
variable_rows = []
|
354 |
for i in range(5):
|
@@ -367,7 +364,7 @@ with gr.Blocks(theme='default', css=CSS_STYLES) as demo:
|
|
367 |
# Send button
|
368 |
with gr.Row(elem_classes="send-button-row"):
|
369 |
send_btn = gr.Button(
|
370 |
-
value="
|
371 |
variant="primary",
|
372 |
size="lg",
|
373 |
scale=1
|
|
|
321 |
with gr.Blocks(theme='default', css=CSS_STYLES) as demo:
|
322 |
judge_id = gr.State(get_new_session_id())
|
323 |
gr.Markdown(MAIN_TITLE)
|
324 |
+
gr.Markdown(HOW_IT_WORKS)
|
325 |
|
326 |
with gr.Tabs():
|
327 |
with gr.TabItem("Judge Arena"):
|
|
|
328 |
|
329 |
with gr.Row():
|
330 |
with gr.Column():
|
331 |
gr.Markdown(BATTLE_RULES)
|
332 |
+
gr.Markdown(EVAL_DESCRIPTION)
|
|
|
|
|
333 |
|
334 |
# Eval Prompt and Variables side by side
|
335 |
with gr.Row():
|
336 |
# Left column - Eval Prompt
|
337 |
with gr.Column(scale=1):
|
338 |
eval_prompt = gr.TextArea(
|
339 |
+
label="Evaluator Prompt",
|
340 |
+
lines=1,
|
341 |
value=DEFAULT_EVAL_PROMPT,
|
342 |
placeholder="Type your eval prompt here... denote variables in {{curly brackets}} to be populated on the right.",
|
343 |
show_label=True
|
|
|
345 |
|
346 |
# Right column - Variable Mapping
|
347 |
with gr.Column(scale=1):
|
348 |
+
gr.Markdown("### Sample to test the evaluator")
|
349 |
# Create inputs for up to 5 variables, with first two visible by default
|
350 |
variable_rows = []
|
351 |
for i in range(5):
|
|
|
364 |
# Send button
|
365 |
with gr.Row(elem_classes="send-button-row"):
|
366 |
send_btn = gr.Button(
|
367 |
+
value="Test the evaluators",
|
368 |
variant="primary",
|
369 |
size="lg",
|
370 |
scale=1
|