Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,36 @@
|
|
1 |
import streamlit as st
|
2 |
import graphviz as gv
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Define the Graphviz diagram using the DOT language
|
5 |
dot = gv.Digraph()
|
6 |
|
|
|
1 |
import streamlit as st
|
2 |
import graphviz as gv
|
3 |
|
4 |
+
import streamlit as st
|
5 |
+
|
6 |
+
|
7 |
+
from st_clickable_images import clickable_images
|
8 |
+
clicked = clickable_images(
|
9 |
+
[
|
10 |
+
"https://images.unsplash.com/photo-1565130838609-c3a86655db61?w=700",
|
11 |
+
"https://images.unsplash.com/photo-1565372195458-9de0b320ef04?w=700",
|
12 |
+
"https://images.unsplash.com/photo-1582550945154-66ea8fff25e1?w=700",
|
13 |
+
"https://images.unsplash.com/photo-1591797442444-039f23ddcc14?w=700",
|
14 |
+
"https://images.unsplash.com/photo-1518727818782-ed5341dbd476?w=700",
|
15 |
+
],
|
16 |
+
titles=[f"Image #{str(i)}" for i in range(5)],
|
17 |
+
div_style={"display": "flex", "justify-content": "center", "flex-wrap": "wrap"},
|
18 |
+
img_style={"margin": "5px", "height": "200px"},
|
19 |
+
)
|
20 |
+
st.markdown(f"Image #{clicked} clicked" if clicked > -1 else "No image clicked")
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
from streamlit_pills import pills
|
25 |
+
selected = pills("Label", ["Option 1", "Option 2", "Option 3"], ["🍀", "🎈", "🌈"])
|
26 |
+
st.write(selected)
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
st.markdown("")
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
# Define the Graphviz diagram using the DOT language
|
35 |
dot = gv.Digraph()
|
36 |
|