Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,9 @@ if uploaded_file is not None:
|
|
58 |
styles = os.listdir(path)
|
59 |
params.style_image = path + '/' + random.choice(styles)
|
60 |
|
61 |
-
st.session_state.submitted = True
|
62 |
-
|
|
|
63 |
|
64 |
#display image when done.
|
65 |
with col2:
|
|
|
58 |
styles = os.listdir(path)
|
59 |
params.style_image = path + '/' + random.choice(styles)
|
60 |
|
61 |
+
st.session_state.submitted = True
|
62 |
+
with st.spinner('Wait for it...'):
|
63 |
+
neural_style.transfer(params)
|
64 |
|
65 |
#display image when done.
|
66 |
with col2:
|