Spaces:
Running
Running
Add child example.
Browse files
examples.py
CHANGED
@@ -22,20 +22,31 @@ def app():
|
|
22 |
|
23 |
st.subheader("Una coppia")
|
24 |
st.markdown("*A couple*")
|
25 |
-
st.image("static/img/examples/couple_0.jpeg")
|
26 |
|
27 |
col1, col2 = st.beta_columns(2)
|
28 |
col1.subheader("Una coppia con il tramonto sullo sfondo")
|
29 |
col1.markdown("*A couple with the sunset in the background*")
|
30 |
-
col1.image("static/img/examples/couple_1.jpeg")
|
31 |
|
32 |
col2.subheader("Una coppia che passeggia sulla spiaggia")
|
33 |
col2.markdown("*A couple walking on the beach*")
|
34 |
-
col2.image("static/img/examples/couple_2.jpeg")
|
35 |
|
36 |
st.subheader("Una coppia che passeggia sulla spiaggia al tramonto")
|
37 |
st.markdown("*A couple walking on the beach at sunset*")
|
38 |
-
st.image("static/img/examples/couple_3.jpeg")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
st.markdown("### 2. Dresses")
|
41 |
st.markdown("These examples were taken from the Unsplash dataset.")
|
@@ -43,11 +54,11 @@ def app():
|
|
43 |
col1, col2 = st.beta_columns(2)
|
44 |
col1.subheader("Un vestito primaverile")
|
45 |
col1.markdown("*A dress for the spring*")
|
46 |
-
col1.image("static/img/examples/vestito1.png")
|
47 |
|
48 |
col2.subheader("Un vestito autunnale")
|
49 |
col2.markdown("*A dress for the autumn*")
|
50 |
-
col2.image("static/img/examples/vestito_autunnale.png")
|
51 |
|
52 |
st.markdown("### 3. Chairs with different styles")
|
53 |
st.markdown("These examples were taken from the CC dataset.")
|
@@ -55,25 +66,29 @@ def app():
|
|
55 |
col1, col2 = st.beta_columns(2)
|
56 |
col1.subheader("Una sedia semplice")
|
57 |
col1.markdown("*A simple chair*")
|
58 |
-
col1.image("static/img/examples/sedia_semplice.jpeg")
|
59 |
|
60 |
col2.subheader("Una sedia regale")
|
61 |
col2.markdown("*A royal chair*")
|
62 |
-
col2.image("static/img/examples/sedia_regale.jpeg")
|
63 |
|
64 |
col1, col2 = st.beta_columns(2)
|
65 |
col1.subheader("Una sedia moderna")
|
66 |
col1.markdown("*A modern chair*")
|
67 |
-
col1.image("static/img/examples/sedia_moderna.jpeg")
|
68 |
|
69 |
col2.subheader("Una sedia rustica")
|
70 |
col2.markdown("*A rustic chair*")
|
71 |
-
col2.image("static/img/examples/sedia_rustica.jpeg")
|
72 |
|
73 |
st.markdown("## Image Classification")
|
74 |
-
st.markdown(
|
75 |
-
|
76 |
-
|
|
|
|
|
77 |
|
78 |
-
st.image("static/img/examples/dalle_mini.png")
|
79 |
-
st.markdown(
|
|
|
|
|
|
22 |
|
23 |
st.subheader("Una coppia")
|
24 |
st.markdown("*A couple*")
|
25 |
+
st.image("static/img/examples/couple_0.jpeg", use_column_width=True)
|
26 |
|
27 |
col1, col2 = st.beta_columns(2)
|
28 |
col1.subheader("Una coppia con il tramonto sullo sfondo")
|
29 |
col1.markdown("*A couple with the sunset in the background*")
|
30 |
+
col1.image("static/img/examples/couple_1.jpeg", use_column_width=True)
|
31 |
|
32 |
col2.subheader("Una coppia che passeggia sulla spiaggia")
|
33 |
col2.markdown("*A couple walking on the beach*")
|
34 |
+
col2.image("static/img/examples/couple_2.jpeg", use_column_width=True)
|
35 |
|
36 |
st.subheader("Una coppia che passeggia sulla spiaggia al tramonto")
|
37 |
st.markdown("*A couple walking on the beach at sunset*")
|
38 |
+
st.image("static/img/examples/couple_3.jpeg", use_column_width=True)
|
39 |
+
|
40 |
+
col1, col2 = st.beta_columns(2)
|
41 |
+
col1.subheader("Un bambino con un biberon")
|
42 |
+
col1.markdown("*A baby with a bottle*")
|
43 |
+
col1.image("static/img/examples/bambino_biberon.jpeg", use_column_width=True)
|
44 |
+
|
45 |
+
col1.subheader("Un bambino con un gelato in spiaggia")
|
46 |
+
col1.markdown("*A child with an ice cream on the beach*")
|
47 |
+
col1.image(
|
48 |
+
"static/img/examples/bambino_gelato_spiaggia.jpeg", use_column_width=True
|
49 |
+
)
|
50 |
|
51 |
st.markdown("### 2. Dresses")
|
52 |
st.markdown("These examples were taken from the Unsplash dataset.")
|
|
|
54 |
col1, col2 = st.beta_columns(2)
|
55 |
col1.subheader("Un vestito primaverile")
|
56 |
col1.markdown("*A dress for the spring*")
|
57 |
+
col1.image("static/img/examples/vestito1.png", use_column_width=True)
|
58 |
|
59 |
col2.subheader("Un vestito autunnale")
|
60 |
col2.markdown("*A dress for the autumn*")
|
61 |
+
col2.image("static/img/examples/vestito_autunnale.png", use_column_width=True)
|
62 |
|
63 |
st.markdown("### 3. Chairs with different styles")
|
64 |
st.markdown("These examples were taken from the CC dataset.")
|
|
|
66 |
col1, col2 = st.beta_columns(2)
|
67 |
col1.subheader("Una sedia semplice")
|
68 |
col1.markdown("*A simple chair*")
|
69 |
+
col1.image("static/img/examples/sedia_semplice.jpeg", use_column_width=True)
|
70 |
|
71 |
col2.subheader("Una sedia regale")
|
72 |
col2.markdown("*A royal chair*")
|
73 |
+
col2.image("static/img/examples/sedia_regale.jpeg", use_column_width=True)
|
74 |
|
75 |
col1, col2 = st.beta_columns(2)
|
76 |
col1.subheader("Una sedia moderna")
|
77 |
col1.markdown("*A modern chair*")
|
78 |
+
col1.image("static/img/examples/sedia_moderna.jpeg", use_column_width=True)
|
79 |
|
80 |
col2.subheader("Una sedia rustica")
|
81 |
col2.markdown("*A rustic chair*")
|
82 |
+
col2.image("static/img/examples/sedia_rustica.jpeg", use_column_width=True)
|
83 |
|
84 |
st.markdown("## Image Classification")
|
85 |
+
st.markdown(
|
86 |
+
"We report this cool example provided by the "
|
87 |
+
"[DALLE-mini team](https://github.com/borisdayma/dalle-mini). "
|
88 |
+
"Is the DALLE-mini logo an *avocado* or an armchair (*poltrona*)?"
|
89 |
+
)
|
90 |
|
91 |
+
st.image("static/img/examples/dalle_mini.png", use_column_width=True)
|
92 |
+
st.markdown(
|
93 |
+
"It seems it's half an armchair and half an avocado! We thank the DALL-E mini team for the great idea :)"
|
94 |
+
)
|
static/img/examples/bambino_biberon.jpeg
ADDED
static/img/examples/bambino_gelato_spiaggia.jpeg
ADDED