Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import plotly.figure_factory as ff
|
3 |
import numpy as np
|
|
|
4 |
|
5 |
|
6 |
# This code is different for each deployed app.
|
@@ -101,13 +102,13 @@ def draw_all(
|
|
101 |
"""
|
102 |
)
|
103 |
|
104 |
-
st.checkbox("Is this cool or what?", key=
|
105 |
st.radio(
|
106 |
"How many balloons?",
|
107 |
["1 balloon 🎈", "2 balloons 🎈🎈", "3 balloons 🎈🎈🎈"],
|
108 |
-
key=
|
109 |
)
|
110 |
-
st.button("🤡 Click me", key=
|
111 |
|
112 |
# if plot:
|
113 |
# st.write("Oh look, a plot:")
|
@@ -122,17 +123,18 @@ def draw_all(
|
|
122 |
|
123 |
# st.plotly_chart(fig, use_container_width=True)
|
124 |
|
125 |
-
st.file_uploader("You can now upload with style", key=
|
126 |
st.slider(
|
127 |
-
"From 10 to 11, how cool are themes?", min_value=10, max_value=11, key=
|
128 |
)
|
129 |
# st.select_slider("Pick a number", [1, 2, 3], key=key)
|
130 |
-
st.number_input("So many numbers", key=
|
131 |
-
st.text_area("A little writing space for you :)", key=
|
|
|
132 |
st.selectbox(
|
133 |
"My favorite thing in the world is...",
|
134 |
["Streamlit", "Theming", "Baloooons 🎈 "],
|
135 |
-
key=
|
136 |
)
|
137 |
# st.multiselect("Pick a number", [1, 2, 3], key=key)
|
138 |
# st.color_picker("Colors, colors, colors", key=key)
|
|
|
1 |
import streamlit as st
|
2 |
import plotly.figure_factory as ff
|
3 |
import numpy as np
|
4 |
+
import random
|
5 |
|
6 |
|
7 |
# This code is different for each deployed app.
|
|
|
102 |
"""
|
103 |
)
|
104 |
|
105 |
+
st.checkbox("Is this cool or what?", key=str(random.randint(0, 10000)))
|
106 |
st.radio(
|
107 |
"How many balloons?",
|
108 |
["1 balloon 🎈", "2 balloons 🎈🎈", "3 balloons 🎈🎈🎈"],
|
109 |
+
key=str(random.randint(0, 10000)),
|
110 |
)
|
111 |
+
st.button("🤡 Click me", key=str(random.randint(0, 10000)))
|
112 |
|
113 |
# if plot:
|
114 |
# st.write("Oh look, a plot:")
|
|
|
123 |
|
124 |
# st.plotly_chart(fig, use_container_width=True)
|
125 |
|
126 |
+
st.file_uploader("You can now upload with style", key=str(random.randint(0, 10000)))
|
127 |
st.slider(
|
128 |
+
"From 10 to 11, how cool are themes?", min_value=10, max_value=11, key=str(random.randint(0, 10000))
|
129 |
)
|
130 |
# st.select_slider("Pick a number", [1, 2, 3], key=key)
|
131 |
+
st.number_input("So many numbers", key=str(random.randint(0, 10000)))
|
132 |
+
st.text_area("A little writing space for you :)", key=str(random.randint(0, 10000)))
|
133 |
+
st.text_input("Text input :)", key=str(random.randint(0, 10000)))
|
134 |
st.selectbox(
|
135 |
"My favorite thing in the world is...",
|
136 |
["Streamlit", "Theming", "Baloooons 🎈 "],
|
137 |
+
key=str(random.randint(0, 10000)),
|
138 |
)
|
139 |
# st.multiselect("Pick a number", [1, 2, 3], key=key)
|
140 |
# st.color_picker("Colors, colors, colors", key=key)
|