new model
Browse files
app.py
CHANGED
|
@@ -99,7 +99,6 @@ for i in range(5):
|
|
| 99 |
eval_models[i].eval()
|
| 100 |
|
| 101 |
# Load the species mapping
|
| 102 |
-
# label_mapping = pd.read_csv('label_mapping.csv')
|
| 103 |
label_mapping = pd.read_csv('BirdAST_Baseline_5folds_label_map.csv')
|
| 104 |
species_id_to_name = {row['species_id']: row['scientific_name'] for index, row in label_mapping.iterrows()}
|
| 105 |
|
|
@@ -162,7 +161,7 @@ with gr.Blocks(css = css) as demo:
|
|
| 162 |
with gr.Row():
|
| 163 |
with gr.Column(elem_classes="column-container"):
|
| 164 |
start_time_input = gr.Number(label="Start Time", value=0, elem_classes="number-input full-height")
|
| 165 |
-
end_time_input = gr.Number(label="End Time", value=
|
| 166 |
with gr.Column():
|
| 167 |
audio_input = gr.Audio(label="Input Audio", elem_classes="full-height")
|
| 168 |
|
|
|
|
| 99 |
eval_models[i].eval()
|
| 100 |
|
| 101 |
# Load the species mapping
|
|
|
|
| 102 |
label_mapping = pd.read_csv('BirdAST_Baseline_5folds_label_map.csv')
|
| 103 |
species_id_to_name = {row['species_id']: row['scientific_name'] for index, row in label_mapping.iterrows()}
|
| 104 |
|
|
|
|
| 161 |
with gr.Row():
|
| 162 |
with gr.Column(elem_classes="column-container"):
|
| 163 |
start_time_input = gr.Number(label="Start Time", value=0, elem_classes="number-input full-height")
|
| 164 |
+
end_time_input = gr.Number(label="End Time", value=10, elem_classes="number-input full-height")
|
| 165 |
with gr.Column():
|
| 166 |
audio_input = gr.Audio(label="Input Audio", elem_classes="full-height")
|
| 167 |
|