cgeorgiaw HF Staff commited on
Commit
53dc1cd
·
1 Parent(s): e55168d

trying to visualize

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -106,12 +106,13 @@ def gradio_interface() -> gr.Blocks:
106
  ds = load_dataset(results_repo, split='train')
107
  full_df = pd.DataFrame(ds)
108
  filenames = full_df['result_filename'].to_list()
109
- with gr.Column():
110
- dropdown = gr.Dropdown(choices=filenames, label="Choose a file", value=filenames[0])
111
- rld_btn = gr.Button(value="Reload")
 
112
 
113
- with gr.Column():
114
- plot = gr.Plot()
115
 
116
  def get_boundary_vis(selected_file):
117
  local_path = read_result_from_hub(selected_file)
 
106
  ds = load_dataset(results_repo, split='train')
107
  full_df = pd.DataFrame(ds)
108
  filenames = full_df['result_filename'].to_list()
109
+ with gr.Row():
110
+ with gr.Column(scale=1):
111
+ dropdown = gr.Dropdown(choices=filenames, label="Choose a leaderboard entry", value=filenames[0])
112
+ rld_btn = gr.Button(value="Reload")
113
 
114
+ with gr.Column(scale=2):
115
+ plot = gr.Plot()
116
 
117
  def get_boundary_vis(selected_file):
118
  local_path = read_result_from_hub(selected_file)