Update app.py
Browse files
app.py
CHANGED
@@ -97,9 +97,9 @@ def on_rejected():
|
|
97 |
return update_ui(record)
|
98 |
|
99 |
with gr.Blocks(css="button.ok-button { background-color: #4CAF50 !important; }") as demo:
|
100 |
-
instruction = gr.Textbox(label="INSTRUCTION", lines=
|
101 |
-
chosen = gr.Textbox(label="CHOSEN", lines=
|
102 |
-
rejected = gr.Textbox(label="REJECTED", lines=
|
103 |
chosen_score = gr.Number(label="CHOSEN SCORE")
|
104 |
rejected_score = gr.Number(label="REJECTED SCORE")
|
105 |
status = gr.Textbox(label="STATUS")
|
|
|
97 |
return update_ui(record)
|
98 |
|
99 |
with gr.Blocks(css="button.ok-button { background-color: #4CAF50 !important; }") as demo:
|
100 |
+
instruction = gr.Textbox(label="INSTRUCTION", lines=2, max_lines=2)
|
101 |
+
chosen = gr.Textbox(label="CHOSEN", lines=12, max_lines=12)
|
102 |
+
rejected = gr.Textbox(label="REJECTED", lines=12, max_lines=12)
|
103 |
chosen_score = gr.Number(label="CHOSEN SCORE")
|
104 |
rejected_score = gr.Number(label="REJECTED SCORE")
|
105 |
status = gr.Textbox(label="STATUS")
|