Martin Ondrej commited on
Commit
b56fb3d
·
1 Parent(s): 9c6c06e

Added multiselct and predict button

Browse files
Files changed (1) hide show
  1. app/app.py +21 -1
app/app.py CHANGED
@@ -1,4 +1,24 @@
1
  import streamlit as st
2
 
 
 
 
 
 
 
 
 
 
3
 
4
- st.title('Sample APP')
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ SYMPTOMS = [
4
+ "Running nose",
5
+ "Fever",
6
+ "Headache",
7
+ "Dry cough",
8
+ "Wet cough",
9
+ "Shivering",
10
+ "Rigor",
11
+ ]
12
 
13
+
14
+ st.title("Welcome to a PocketDoctor")
15
+
16
+ options = st.multiselect(
17
+ label="",
18
+ options=SYMPTOMS,
19
+ placeholder="Start writing your symptoms and then pick from the dropdown list",
20
+ )
21
+
22
+
23
+ if st.button(label="Predict", use_container_width=True):
24
+ st.write("### Influenza")