Petr Tsvetkov
commited on
Commit
·
039521b
1
Parent(s):
0151d66
Add labels highlighting the total # of samples and the commit message textbox
Browse files
app.py
CHANGED
|
@@ -121,10 +121,13 @@ with gr.Blocks(theme=gr.themes.Soft(), head=head_html, css="style_overrides.css"
|
|
| 121 |
value=0,
|
| 122 |
interactive=False,
|
| 123 |
label='sample_ind',
|
| 124 |
-
info=f"Samples labeled/skipped
|
| 125 |
show_label=False,
|
| 126 |
container=False,
|
| 127 |
scale=5)
|
|
|
|
|
|
|
|
|
|
| 128 |
with gr.Column(scale=1):
|
| 129 |
skip_btn = gr.Button("Skip the current sample")
|
| 130 |
with gr.Row():
|
|
@@ -135,6 +138,8 @@ with gr.Blocks(theme=gr.themes.Soft(), head=head_html, css="style_overrides.css"
|
|
| 135 |
with gr.Accordion("Commit summary (AI generated)", open=False):
|
| 136 |
commit_summary = gr.Markdown()
|
| 137 |
commit_msg_start = gr.TextArea(label="commit_msg_start", visible=False)
|
|
|
|
|
|
|
| 138 |
commit_msg = gr.TextArea(label="commit_msg_end", show_label=False,
|
| 139 |
info="Commit message (can be scrollable)")
|
| 140 |
commit_msg_prev = gr.TextArea(visible=False)
|
|
|
|
| 121 |
value=0,
|
| 122 |
interactive=False,
|
| 123 |
label='sample_ind',
|
| 124 |
+
info=f"Samples labeled/skipped",
|
| 125 |
show_label=False,
|
| 126 |
container=False,
|
| 127 |
scale=5)
|
| 128 |
+
|
| 129 |
+
with gr.Column(scale=1):
|
| 130 |
+
gr.Markdown(value=f"#### Total number of samples: {n_samples}")
|
| 131 |
with gr.Column(scale=1):
|
| 132 |
skip_btn = gr.Button("Skip the current sample")
|
| 133 |
with gr.Row():
|
|
|
|
| 138 |
with gr.Accordion("Commit summary (AI generated)", open=False):
|
| 139 |
commit_summary = gr.Markdown()
|
| 140 |
commit_msg_start = gr.TextArea(label="commit_msg_start", visible=False)
|
| 141 |
+
|
| 142 |
+
gr.Markdown(value=f"#### Please, edit the message in the text box below")
|
| 143 |
commit_msg = gr.TextArea(label="commit_msg_end", show_label=False,
|
| 144 |
info="Commit message (can be scrollable)")
|
| 145 |
commit_msg_prev = gr.TextArea(visible=False)
|