Create new file
Browse files
app.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
st.write(variable) variable can be a chart or dataframe
|
2 |
+
st.title, st.header, st.subheader st.subheader("SubHeader", anchor="s1")
|
3 |
+
st.latex math equations
|
4 |
+
st.table(df) and st.dataframe oenguins = sns.load_dataset("penguins") st.dataframe(penguins)
|
5 |
+
support for pandas style st.dataframe(penguins.style.applymap(..)
|
6 |
+
st.metric(label="Temp", value="70 F", delta=1.2 F)
|
7 |
+
st.altair_chart(c) https://youtu.be/vIQQR_yq-8I?list=PLHgX2IExbFou8Wa0Z1mAPdP_Pd85LYVBK&t=214
|
8 |
+
https://docs.streamlit.io/library/api-reference/charts/st.altair_chart
|
9 |
+
https://altair-viz.github.io/gallery/
|
10 |
+
appearance=wide
|
11 |
+
st.line_chart(), st.bar_chart(), st.area_chart()
|
12 |
+
https://youtu.be/vIQQR_yq-8I?list=PLHgX2IExbFou8Wa0Z1mAPdP_Pd85LYVBK&t=260
|
13 |
+
st.vega_lite_chart(df, spec)
|
14 |
+
st.plotly, st.bokeh, st.matplotlib st.plotly_chart(f), st.bokeh_chart(f), st.pyplot(fig)
|
15 |
+
st.graphviz_chart(dot_data) https://youtu.be/vIQQR_yq-8I?list=PLHgX2IExbFou8Wa0Z1mAPdP_Pd85LYVBK&t=344
|
16 |
+
st.pydeck and st.map - mapbox token: secrets.toml
|
17 |
+
- Streamlit website: https://streamlit.io/
|
18 |
+
- Streamlit docs: https://docs.streamlit.io/
|
19 |
+
- Streamlit forum: https://discuss.streamlit.io/
|
20 |
+
- Streamlit Discord (official): https://discord.gg/bTz5EDYh9Z
|
21 |
+
- Streamlit components (official): https://streamlit.io/components
|
22 |
+
- Streamlit components (community): https://discuss.streamlit.io/t/stream...
|
23 |
+
- Altair Gallery: https://altair-viz.github.io/gallery/...
|
24 |
+
- Bokeh: https://bokeh.org/
|
25 |
+
- Plotly Express: https://plotly.com/python/plotly-expr...
|
26 |
+
https://linktr.ee/andfanilo
|
27 |
+
.add_rows
|
28 |
+
st.image, st.audio, st.video
|
29 |
+
with open(filepath, "rb") as f:
|
30 |
+
data=f.read()
|
31 |
+
st.image(data), st.audio(data), st.video(data)
|
32 |
+
generated = generate_media_with_deeplearning(x)
|
33 |
+
st.image(generated), st.audio(generated), st.video(generated)
|
34 |
+
filepath="/Users/media.ext"
|
35 |
+
st.image(filepath), st.audio(filepath), st.video(filepath)
|
36 |
+
url="http://medialink"
|
37 |
+
st.image(url), st.audio(url), st.video(url)
|