Spaces:
Runtime error
Runtime error
therealcyberlord
commited on
Commit
·
f27a3bb
1
Parent(s):
161d5d5
changed location of image
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ use_srgan = st.sidebar.selectbox(
|
|
28 |
|
29 |
generate = st.sidebar.button("Generate")
|
30 |
st.write("Get started using the left side bar :sunglasses:")
|
31 |
-
|
32 |
# caching the expensive model loading
|
33 |
|
34 |
@st.cache(allow_output_mutation=True)
|
@@ -69,7 +69,7 @@ if generate:
|
|
69 |
for i in range(len(color_match)):
|
70 |
# denormalize and permute to correct color channel
|
71 |
cols[i].image(denormalize_images(color_match[i]).permute(1, 2, 0).numpy(), use_column_width=True)
|
72 |
-
|
73 |
|
74 |
# default setting -> vanilla dcgan generation
|
75 |
if use_srgan == "No":
|
@@ -78,6 +78,7 @@ if generate:
|
|
78 |
cols = st.columns(num_images)
|
79 |
for i in range(len(fakes)):
|
80 |
cols[i].image(denormalize_images(fakes[i]).permute(1, 2, 0).numpy(), use_column_width=True)
|
|
|
81 |
|
82 |
|
83 |
|
|
|
28 |
|
29 |
generate = st.sidebar.button("Generate")
|
30 |
st.write("Get started using the left side bar :sunglasses:")
|
31 |
+
|
32 |
# caching the expensive model loading
|
33 |
|
34 |
@st.cache(allow_output_mutation=True)
|
|
|
69 |
for i in range(len(color_match)):
|
70 |
# denormalize and permute to correct color channel
|
71 |
cols[i].image(denormalize_images(color_match[i]).permute(1, 2, 0).numpy(), use_column_width=True)
|
72 |
+
st.image("pointing.png", use_column_width=True, caption="https://knowyourmeme.com/memes/two-soyjaks-pointing")
|
73 |
|
74 |
# default setting -> vanilla dcgan generation
|
75 |
if use_srgan == "No":
|
|
|
78 |
cols = st.columns(num_images)
|
79 |
for i in range(len(fakes)):
|
80 |
cols[i].image(denormalize_images(fakes[i]).permute(1, 2, 0).numpy(), use_column_width=True)
|
81 |
+
st.image("pointing.png", use_column_width=True, caption="https://knowyourmeme.com/memes/two-soyjaks-pointing")
|
82 |
|
83 |
|
84 |
|