awacke1 commited on
Commit
aebb899
Β·
1 Parent(s): c19bec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +71 -71
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
- 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()
 
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()