Spaces:
Runtime error
Runtime error
ArchitSharma
commited on
Commit
•
f1705e6
1
Parent(s):
6dbedbe
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ if colorizer is not None:
|
|
123 |
with st.expander("Original photo", True):
|
124 |
st.image(img_input)
|
125 |
|
126 |
-
if st.button("
|
127 |
|
128 |
with st.spinner("AI is doing the magic!"):
|
129 |
img_output = colorize_image(img_input)
|
|
|
123 |
with st.expander("Original photo", True):
|
124 |
st.image(img_input)
|
125 |
|
126 |
+
if st.button("Restore Color!") and uploaded_file is not None:
|
127 |
|
128 |
with st.spinner("AI is doing the magic!"):
|
129 |
img_output = colorize_image(img_input)
|