Jung commited on
Commit
d5e9310
·
1 Parent(s): b6efca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,10 @@
1
  import streamlit as st
2
 
3
- x = st.sidebar.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ genre = st.sidebar.radio(
4
+ "What's your favorite movie genre",
5
+ ('Comedy', 'Drama', 'Documentary'))
6
+
7
+ if genre == 'Comedy':
8
+ st.write('You selected comedy.')
9
+ else:
10
+ st.write("You didn't select comedy.")