Update app.py
Browse files
app.py
CHANGED
@@ -123,78 +123,78 @@ for i, (state, icon) in enumerate(zip(states, icons)):
|
|
123 |
# Expanders for each state to outline fascinating facts
|
124 |
with st.expander(f"See Fascinating Facts about {state}"):
|
125 |
text_to_speak = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
βοΈ Cold winters but lovely summers
|
134 |
-
π Largest city: Minneapolis
|
135 |
-
π Walleye: The state fish
|
136 |
-
π Home to the Minnesota Vikings."""
|
137 |
-
elif state == 'CA':
|
138 |
-
text_to_speak = """π΄ **California**
|
139 |
-
π Home to the Golden Gate Bridge
|
140 |
-
π¬ Center of the American entertainment industry
|
141 |
-
π Famous for Napa Valley's wine
|
142 |
-
π² Home to Redwood National Park
|
143 |
-
πββοΈ Excellent beaches and surf spots
|
144 |
-
ποΈ Yosemite National Park: A natural wonder
|
145 |
-
π΅ Death Valley: The hottest and driest area."""
|
146 |
-
elif state == 'WA':
|
147 |
-
text_to_speak = """π **Washington**
|
148 |
-
β Known for its coffee culture
|
149 |
-
π» Home to Mount Rainier
|
150 |
-
π Leading apple-producing state
|
151 |
-
π Rich in seafood, especially salmon
|
152 |
-
π§οΈ Known for its rainy weather
|
153 |
-
π² Olympic National Park: Diverse ecosystems
|
154 |
-
π Seattle: A tech hub and major city."""
|
155 |
-
elif state == 'FL':
|
156 |
-
text_to_speak = """π **Florida**
|
157 |
-
ποΈ Famous for its beaches
|
158 |
-
π’ Home to various amusement parks like Disney World
|
159 |
-
π Space launches from Cape Canaveral
|
160 |
-
π Known for the Everglades and alligators
|
161 |
-
π Major orange producer
|
162 |
-
π The Keys: A series of tropical islands
|
163 |
-
π° Miami: Known for its vibrant culture and nightlife."""
|
164 |
-
elif state == 'TX':
|
165 |
-
text_to_speak = """π€ **Texas**
|
166 |
-
π’οΈ Known for its oil and gas industry
|
167 |
-
π Famous for its barbecue
|
168 |
-
πΈ Rich musical heritage
|
169 |
-
π Home to many cattle ranches
|
170 |
-
π΅ Includes part of the Chihuahuan Desert
|
171 |
-
π Big Bend National Park: Stunning night skies
|
172 |
-
π Houston: Home to NASA's Johnson Space Center."""
|
173 |
-
elif state == 'NY':
|
174 |
-
text_to_speak = """π½ **New York**
|
175 |
-
ποΈ Home to New York City, the largest city in the U.S.
|
176 |
-
π Known as the Big Apple
|
177 |
-
π Major hub for arts and culture
|
178 |
-
ποΈ Adirondack Mountains offer outdoor adventures
|
179 |
-
π Famous for its style of pizza
|
180 |
-
π Niagara Falls: A natural wonder
|
181 |
-
ποΈ Finger Lakes: Known for wineries and beautiful scenery."""
|
182 |
-
elif state == 'NV':
|
183 |
-
text_to_speak = """π° **Nevada**
|
184 |
-
π Known for Las Vegas and its casinos
|
185 |
-
ποΈ Includes part of the Mojave Desert
|
186 |
-
πͺ Entertainment is a major industry
|
187 |
-
π Known for the Hoover Dam
|
188 |
-
π½ Area 51 is located here
|
189 |
-
ποΈ Lake Tahoe: A stunning freshwater lake
|
190 |
-
π Great Basin National Park: Known for its ancient bristlecone pines."""
|
191 |
-
|
192 |
-
st.markdown(text_to_speak)
|
193 |
-
|
194 |
-
# plot_state_outline(state, us_states_geojson, state_names)
|
195 |
-
|
196 |
-
if st.button(f"π Read {state}'s Facts Aloud"):
|
197 |
-
generate_speech_textarea(text_to_speak)
|
198 |
|
199 |
# Display maps
|
200 |
MapInfo = ListMaps()
|
|
|
123 |
# Expanders for each state to outline fascinating facts
|
124 |
with st.expander(f"See Fascinating Facts about {state}"):
|
125 |
text_to_speak = ""
|
126 |
+
|
127 |
+
if state == 'MN':
|
128 |
+
text_to_speak = """π¦ **Minnesota**
|
129 |
+
ποΈ Known as the 'Land of 10,000 Lakes'
|
130 |
+
π£ Famous for its fishing
|
131 |
+
πΆ Boundary Waters offers incredible canoeing
|
132 |
+
π Home to prestigious colleges
|
133 |
+
βοΈ Cold winters but lovely summers
|
134 |
+
π Largest city: Minneapolis
|
135 |
+
π Walleye: The state fish
|
136 |
+
π Home to the Minnesota Vikings."""
|
137 |
+
elif state == 'CA':
|
138 |
+
text_to_speak = """π΄ **California**
|
139 |
+
π Home to the Golden Gate Bridge
|
140 |
+
π¬ Center of the American entertainment industry
|
141 |
+
π Famous for Napa Valley's wine
|
142 |
+
π² Home to Redwood National Park
|
143 |
+
πββοΈ Excellent beaches and surf spots
|
144 |
+
ποΈ Yosemite National Park: A natural wonder
|
145 |
+
π΅ Death Valley: The hottest and driest area."""
|
146 |
+
elif state == 'WA':
|
147 |
+
text_to_speak = """π **Washington**
|
148 |
+
β Known for its coffee culture
|
149 |
+
π» Home to Mount Rainier
|
150 |
+
π Leading apple-producing state
|
151 |
+
π Rich in seafood, especially salmon
|
152 |
+
π§οΈ Known for its rainy weather
|
153 |
+
π² Olympic National Park: Diverse ecosystems
|
154 |
+
π Seattle: A tech hub and major city."""
|
155 |
+
elif state == 'FL':
|
156 |
+
text_to_speak = """π **Florida**
|
157 |
+
ποΈ Famous for its beaches
|
158 |
+
π’ Home to various amusement parks like Disney World
|
159 |
+
π Space launches from Cape Canaveral
|
160 |
+
π Known for the Everglades and alligators
|
161 |
+
π Major orange producer
|
162 |
+
π The Keys: A series of tropical islands
|
163 |
+
π° Miami: Known for its vibrant culture and nightlife."""
|
164 |
+
elif state == 'TX':
|
165 |
+
text_to_speak = """π€ **Texas**
|
166 |
+
π’οΈ Known for its oil and gas industry
|
167 |
+
π Famous for its barbecue
|
168 |
+
πΈ Rich musical heritage
|
169 |
+
π Home to many cattle ranches
|
170 |
+
π΅ Includes part of the Chihuahuan Desert
|
171 |
+
π Big Bend National Park: Stunning night skies
|
172 |
+
π Houston: Home to NASA's Johnson Space Center."""
|
173 |
+
elif state == 'NY':
|
174 |
+
text_to_speak = """π½ **New York**
|
175 |
+
ποΈ Home to New York City, the largest city in the U.S.
|
176 |
+
π Known as the Big Apple
|
177 |
+
π Major hub for arts and culture
|
178 |
+
ποΈ Adirondack Mountains offer outdoor adventures
|
179 |
+
π Famous for its style of pizza
|
180 |
+
π Niagara Falls: A natural wonder
|
181 |
+
ποΈ Finger Lakes: Known for wineries and beautiful scenery."""
|
182 |
+
elif state == 'NV':
|
183 |
+
text_to_speak = """π° **Nevada**
|
184 |
+
π Known for Las Vegas and its casinos
|
185 |
+
ποΈ Includes part of the Mojave Desert
|
186 |
+
πͺ Entertainment is a major industry
|
187 |
+
π Known for the Hoover Dam
|
188 |
+
π½ Area 51 is located here
|
189 |
+
ποΈ Lake Tahoe: A stunning freshwater lake
|
190 |
+
π Great Basin National Park: Known for its ancient bristlecone pines."""
|
191 |
|
192 |
+
st.markdown(text_to_speak)
|
193 |
+
|
194 |
+
# plot_state_outline(state, us_states_geojson, state_names)
|
195 |
+
|
196 |
+
if st.button(f"π Read {state}'s Facts Aloud"):
|
197 |
+
generate_speech_textarea(text_to_speak)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
# Display maps
|
200 |
MapInfo = ListMaps()
|