Spaces:
Build error
Build error
tried to fix duplication issue
Browse files
app.py
CHANGED
|
@@ -13,7 +13,13 @@ AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
|
|
| 13 |
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
|
| 14 |
|
| 15 |
# Predefined list of datasets
|
| 16 |
-
datasets = ["WayveScenes", "MajorTom-Germany", "MajorTom-Netherlands"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
description = {
|
| 18 |
"WayveScenes": "A large-scale dataset featuring diverse urban driving scenes, captured from vehicles to advance AI perception and navigation in complex environments.",
|
| 19 |
"MajorTom-Germany": "A geospatial dataset containing satellite imagery from across Germany, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics.",
|
|
@@ -51,10 +57,7 @@ def main():
|
|
| 51 |
# Select dataset from dropdown
|
| 52 |
dataset_name = st.selectbox("Select Dataset", datasets)
|
| 53 |
#For Loading from Box
|
| 54 |
-
|
| 55 |
-
folder_path = 'MajorTom-Europe/'
|
| 56 |
-
else:
|
| 57 |
-
folder_path = f'{dataset_name}/'
|
| 58 |
|
| 59 |
st.caption(description[dataset_name])
|
| 60 |
|
|
|
|
| 13 |
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
|
| 14 |
|
| 15 |
# Predefined list of datasets
|
| 16 |
+
datasets = ["WayveScenes", "MajorTom-Germany", "MajorTom-Netherlands"]
|
| 17 |
+
folder_path_dict = {
|
| 18 |
+
"WayveScenes": "WayveScenes/",
|
| 19 |
+
"MajorTom-Germany": "MajorTOM-DE/",
|
| 20 |
+
"MajorTom-Netherlands": "MajorTOM-NL/",
|
| 21 |
+
"MajorTom-UK" :""
|
| 22 |
+
}
|
| 23 |
description = {
|
| 24 |
"WayveScenes": "A large-scale dataset featuring diverse urban driving scenes, captured from vehicles to advance AI perception and navigation in complex environments.",
|
| 25 |
"MajorTom-Germany": "A geospatial dataset containing satellite imagery from across Germany, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics.",
|
|
|
|
| 57 |
# Select dataset from dropdown
|
| 58 |
dataset_name = st.selectbox("Select Dataset", datasets)
|
| 59 |
#For Loading from Box
|
| 60 |
+
folder_path = folder_path_dict[dataset_name]
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
st.caption(description[dataset_name])
|
| 63 |
|