Carlos Costa commited on
Commit
21b298b
1 Parent(s): 99de054

Test images

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,11 +1,14 @@
 
1
  import streamlit as st
2
 
3
 
4
  st.markdown('# Titanic Workshop - Would you be able to survive the Titanic disaster?')
5
- st.markdown("# ")
 
 
6
  st.markdown("### Input your passenger data: ")
7
 
8
- age = st.number_input('Insert your age', min_value=0, max_value=100)
9
 
10
  sex = st.radio("Sex", ("Male", "Female"))
11
 
@@ -28,6 +31,6 @@ passenger_data = {
28
  if sex == "Female":
29
  st.markdown("# YOU'RE DEAD :cry:")
30
  else:
31
- st.markdown("# YOU MADE IT, :ring_buoy:")
32
 
33
  st.write(passenger_data)
 
1
+ import PIL
2
  import streamlit as st
3
 
4
 
5
  st.markdown('# Titanic Workshop - Would you be able to survive the Titanic disaster?')
6
+ image = Image.open('research/titanic.jpeg')
7
+ st.image(image)
8
+ st.markdown("## ")
9
  st.markdown("### Input your passenger data: ")
10
 
11
+ age = st.number_input('Age', min_value=0, max_value=100)
12
 
13
  sex = st.radio("Sex", ("Male", "Female"))
14
 
 
31
  if sex == "Female":
32
  st.markdown("# YOU'RE DEAD :cry:")
33
  else:
34
+ st.markdown("# YOU MADE IT, :man-swimming:")
35
 
36
  st.write(passenger_data)