Spaces:
Runtime error
Runtime error
added slider label
Browse files
app.py
CHANGED
@@ -47,7 +47,10 @@ def create_plot(row_index: int, dataset_name: str) -> go.Figure:
|
|
47 |
|
48 |
def show_tab_section(data: np.ndarray, dataset_name: str):
|
49 |
num_indexes = data.shape[0]
|
50 |
-
index = gr.Slider(
|
|
|
|
|
|
|
51 |
button = gr.Button("Predict")
|
52 |
plot = gr.Plot()
|
53 |
create_plot_data = partial(create_plot, dataset_name=dataset_name)
|
|
|
47 |
|
48 |
def show_tab_section(data: np.ndarray, dataset_name: str):
|
49 |
num_indexes = data.shape[0]
|
50 |
+
index = gr.Slider(
|
51 |
+
maximum=num_indexes - 1,
|
52 |
+
label="Select the index of the row you want to classify:",
|
53 |
+
)
|
54 |
button = gr.Button("Predict")
|
55 |
plot = gr.Plot()
|
56 |
create_plot_data = partial(create_plot, dataset_name=dataset_name)
|