Owos commited on
Commit
2e2a0b2
1 Parent(s): ac152f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- my_bar.progress(neural_style.transfer(params))
 
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: