forked from streamlit/streamlit-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamlit_app.py
31 lines (25 loc) · 1.11 KB
/
streamlit_app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from collections import namedtuple
import streamlit as st
"""
# Medizin-Tagebuch
"""
with st.echo(code_location='below'):
st.header("Dosis Information")
dose = st.number_input("Dosis", min_value=1, max_value=4, value=1, step=1)
time = st.time_input("Uhrzeit")
quantity = st.number_input("Anzahl Menge", min_value=1, value=1, step=1)
milligram = st.number_input("Milligram", min_value=1, value=1, step=1)
st.header("Symptom Information")
symptom_rating = st.selectbox("Bewertung", ["Negativ", "Leicht Negativ", "Neutral", "Leicht Positiv", "Positiv"])
symptom_time = st.time_input("Symptom Zeitstempel")
symptom_description = st.text_input("Symptombeschreibung")
mood = st.text_input("Stimmung")
if st.button("Einreichen"):
st.write("Dosis: ", dose)
st.write("Uhrzeit: ", time)
st.write("Anzahl Menge: ", quantity)
st.write("Milligram: ", milligram)
st.write("Bewertung: ", symptom_rating)
st.write("Symptom Zeitstempel: ", symptom_time)
st.write("Symptombeschreibung: ", symptom_description)
st.write("Stimmung: ", mood)