add autofocus, fix arg name
Browse files
annotation_tab/annotation_setup.py
CHANGED
|
@@ -20,13 +20,13 @@ def get_annotation_widgets(selected_tile_state):
|
|
| 20 |
)
|
| 21 |
progress_display = gr.Markdown(value="No images loaded", elem_id="progress_display")
|
| 22 |
img = gr.Image(type="filepath", value=get_current_image_path(), label="Blob")
|
| 23 |
-
txt = gr.Textbox(label="Transcription", elem_id="transcription_box")
|
| 24 |
hint = gr.Markdown("*If there are multiple street names in the image, please separate them with commas.*")
|
| 25 |
|
| 26 |
with gr.Row():
|
| 27 |
refresh_btn = gr.Button("Retrieve Images")
|
| 28 |
prev_btn = gr.Button("Previous", interactive=False)
|
| 29 |
-
next_btn = gr.Button("Save & Next", variant="primary",
|
| 30 |
del_btn = gr.Button("Delete & Next", variant="stop", interactive=False)
|
| 31 |
#exit_btn = gr.Button("Save & Exit", variant="secondary")
|
| 32 |
download_btn = gr.Button("Download Annotations", interactive=False)
|
|
|
|
| 20 |
)
|
| 21 |
progress_display = gr.Markdown(value="No images loaded", elem_id="progress_display")
|
| 22 |
img = gr.Image(type="filepath", value=get_current_image_path(), label="Blob")
|
| 23 |
+
txt = gr.Textbox(label="Transcription", elem_id="transcription_box",autofocus=True)
|
| 24 |
hint = gr.Markdown("*If there are multiple street names in the image, please separate them with commas.*")
|
| 25 |
|
| 26 |
with gr.Row():
|
| 27 |
refresh_btn = gr.Button("Retrieve Images")
|
| 28 |
prev_btn = gr.Button("Previous", interactive=False)
|
| 29 |
+
next_btn = gr.Button("Save & Next", variant="primary", interactive=False)
|
| 30 |
del_btn = gr.Button("Delete & Next", variant="stop", interactive=False)
|
| 31 |
#exit_btn = gr.Button("Save & Exit", variant="secondary")
|
| 32 |
download_btn = gr.Button("Download Annotations", interactive=False)
|