awacke1 commited on
Commit
39ee82c
·
1 Parent(s): c5b6c62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -33,6 +33,9 @@ def generate_speech_textarea(text_to_speak):
33
  '''
34
  components.html(documentHTML5, width=1280, height=500)
35
 
 
 
 
36
  # Function to display the state outline
37
  def plot_state_outline(state_code):
38
  # Read U.S. geometries file
@@ -79,12 +82,7 @@ icons = ['🦆', '🌴', '🍎', '🌞', '🤠', '🗽', '🎰']
79
  for state, icon in zip(states, icons):
80
  st.write(f"{icon} {state}")
81
  plot_state_outline(state)
82
-
83
 
84
- # States list and associated icons
85
- # states = ['MN', 'CA', 'WA', 'FL', 'TX', 'NY', 'NV']
86
- # icons = ['🦆', '🌴', '🍎', '🌞', '🤠', '🗽', '🎰']
87
-
88
  # Main code
89
  st.title('U.S. States Trivia 🗺️')
90
 
@@ -111,6 +109,7 @@ for i, (state, icon) in enumerate(zip(states, icons)):
111
  text_to_speak = "🎰 **Nevada** \n🌆 Known for Las Vegas and its casinos \n🏜️ Includes part of the Mojave Desert \n🎪 Entertainment is a major industry \n💎 Known for the Hoover Dam \n👽 Area 51 is located here."
112
 
113
  st.markdown(text_to_speak)
 
114
  plot_state_outline(state)
115
 
116
  if st.button(f"🔊 Read {state}'s Facts Aloud"):
 
33
  '''
34
  components.html(documentHTML5, width=1280, height=500)
35
 
36
+
37
+
38
+
39
  # Function to display the state outline
40
  def plot_state_outline(state_code):
41
  # Read U.S. geometries file
 
82
  for state, icon in zip(states, icons):
83
  st.write(f"{icon} {state}")
84
  plot_state_outline(state)
 
85
 
 
 
 
 
86
  # Main code
87
  st.title('U.S. States Trivia 🗺️')
88
 
 
109
  text_to_speak = "🎰 **Nevada** \n🌆 Known for Las Vegas and its casinos \n🏜️ Includes part of the Mojave Desert \n🎪 Entertainment is a major industry \n💎 Known for the Hoover Dam \n👽 Area 51 is located here."
110
 
111
  st.markdown(text_to_speak)
112
+
113
  plot_state_outline(state)
114
 
115
  if st.button(f"🔊 Read {state}'s Facts Aloud"):