YashMK89 commited on
Commit
ffd6783
·
verified ·
1 Parent(s): 5aa143a

udate app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import json
3
+
4
+ # Load dataset IDs from JSON file
5
+ with open("datasets.json") as f:
6
+ data = json.load(f)
7
+ dataset_ids = data["datasets"]
8
+
9
+ # Display title and selection menu
10
+ st.title("Google Earth Engine Dataset Selector")
11
+ selected_dataset = st.selectbox("Select a Dataset ID", dataset_ids)
12
+
13
+ # Display selected dataset information
14
+ st.write(f"**Selected Dataset ID:** {selected_dataset}")
15
+ st.write("For more information, visit the [Google Earth Engine catalog](https://developers.google.com/earth-engine/datasets).")