trying to visualize
Browse files
app.py
CHANGED
@@ -106,11 +106,12 @@ 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 |
dropdown = gr.Dropdown(choices=filenames, label="Choose a file", value=filenames[0])
|
111 |
rld_btn = gr.Button(value="Reload")
|
112 |
|
113 |
-
|
|
|
114 |
|
115 |
def get_boundary_vis(selected_file):
|
116 |
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.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)
|