trying to visualize
Browse files
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.
|
110 |
-
|
111 |
-
|
|
|
112 |
|
113 |
-
|
114 |
-
|
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)
|