Update app.py
Browse files
app.py
CHANGED
@@ -75,9 +75,9 @@ def on_rejected():
|
|
75 |
return update_ui(record)
|
76 |
|
77 |
with gr.Blocks(css="button.ok-button { background-color: #4CAF50 !important; }") as demo:
|
78 |
-
instruction = gr.Textbox(label="INSTRUCTION", lines=
|
79 |
-
chosen = gr.Textbox(label="CHOSEN", lines=
|
80 |
-
rejected = gr.Textbox(label="REJECTED", lines=
|
81 |
chosen_score = gr.Number(label="CHOSEN SCORE")
|
82 |
rejected_score = gr.Number(label="REJECTED SCORE")
|
83 |
status = gr.Textbox(label="STATUS")
|
|
|
75 |
return update_ui(record)
|
76 |
|
77 |
with gr.Blocks(css="button.ok-button { background-color: #4CAF50 !important; }") as demo:
|
78 |
+
instruction = gr.Textbox(label="INSTRUCTION", lines=2, max_lines=2)
|
79 |
+
chosen = gr.Textbox(label="CHOSEN", lines=12, max_lines=12)
|
80 |
+
rejected = gr.Textbox(label="REJECTED", lines=12, max_lines=12)
|
81 |
chosen_score = gr.Number(label="CHOSEN SCORE")
|
82 |
rejected_score = gr.Number(label="REJECTED SCORE")
|
83 |
status = gr.Textbox(label="STATUS")
|