hassiahk commited on
Commit
8bc9869
1 Parent(s): 458b52e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -44,8 +44,8 @@ phi = st.sidebar.slider("Phi", min_value=0., max_value=0.5*pi,
44
  radius = st.sidebar.slider("Radius", min_value=2., max_value=6.,
45
  step=1., value=3.)
46
 
47
-
48
- pred_color, _ = render_predict_from_pose(state, theta, phi, radius)
49
- im = predict_to_image(pred_color)
50
-
51
- st.image(im, use_column_width=False)
 
44
  radius = st.sidebar.slider("Radius", min_value=2., max_value=6.,
45
  step=1., value=3.)
46
 
47
+ with st.spinner("Generating the view..."):
48
+ pred_color, _ = render_predict_from_pose(state, theta, phi, radius)
49
+ im = predict_to_image(pred_color)
50
+
51
+ st.image(im, use_column_width=False)