Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
4ea28ea
1
Parent(s):
8f783e1
update
Browse files- pages/arena.py +6 -1
pages/arena.py
CHANGED
@@ -16,7 +16,12 @@ def create_arena():
|
|
16 |
with gr.Group():
|
17 |
datapoint = random.choice(dataset)
|
18 |
datapoint = datapoint['section_text'] + '\n\nDialogue:\n' + datapoint['dialogue']
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
with gr.Row():
|
22 |
columns = [gr.Textbox(label=f"Prompt {i+1}", lines=10) for i in range(len(prompts))]
|
|
|
16 |
with gr.Group():
|
17 |
datapoint = random.choice(dataset)
|
18 |
datapoint = datapoint['section_text'] + '\n\nDialogue:\n' + datapoint['dialogue']
|
19 |
+
gr.Markdown("""This arena is designed to compare different prompts. Click the button to stream responses from randomly shuffled prompts. Each column represents a response generated from one randomly selected prompt.
|
20 |
+
|
21 |
+
Once the streaming is complete, you can choose the best response.\u2764\ufe0f""")
|
22 |
+
|
23 |
+
gr.Textbox(label="datapoint", lines=10, placeholder="Datapoints to test...", value=datapoint)
|
24 |
+
submit_button = gr.Button("✨ Click to Streaming ✨")
|
25 |
|
26 |
with gr.Row():
|
27 |
columns = [gr.Textbox(label=f"Prompt {i+1}", lines=10) for i in range(len(prompts))]
|