Skip to content

Commit

Permalink
Fix ruff error.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanJDick committed Feb 12, 2024
1 parent 8299baf commit d2c185e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/invoke_training/ui/pages/data_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ def __init__(self):
self._cur_example_index = gr.Number(label="Current index", precision=0, interactive=True)
self._cur_len_number = gr.Number(label="Dataset length", interactive=False)
with gr.Row():
self._beyond_dataset_limits_warning = gr.Markdown("**Current index is beyond dataset limits.** If you have completed all captions, click 'Home' to begin training.")
self._beyond_dataset_limits_warning = gr.Markdown(
"**Current index is beyond dataset limits.** If you have completed all captions, click "
"'Home' to begin training."
)
with gr.Row():
self._cur_image = gr.Image(value=None, label="Image", interactive=False, width=500)
with gr.Column():
self._cur_caption = gr.Textbox(label="Caption", interactive=True, lines=25)

self._cur_caption = gr.Textbox(label="Caption", interactive=True, lines=25)

with gr.Row():
self._save_and_prev_button = gr.Button("Save and Go-To Previous")
Expand Down

0 comments on commit d2c185e

Please sign in to comment.