Skip to content

Commit

Permalink
Use default gr.Dataframe for evaluation table
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Oct 27, 2023
1 parent f481ce3 commit 262f8ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,3 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
.options {
z-index: 100 !important;
}

/* ----------------------------------------------
Increase the height of the evaluation table
---------------------------------------------- */
#evaluation-table table {
max-height: none !important;
overflow-y: auto !important;
}
2 changes: 1 addition & 1 deletion modules/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def create_ui():
with gr.Column():
evaluation_log = gr.Markdown(value='')

evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True, height=16000, elem_id='evaluation-table')
evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True)
with gr.Row():
save_comments = gr.Button('Save comments', elem_classes="small-button", interactive=not mu)
refresh_table = gr.Button('Refresh the table', elem_classes="small-button", interactive=not mu)
Expand Down

0 comments on commit 262f8ae

Please sign in to comment.