kmnis commited on
Commit
b3260ad
1 Parent(s): b063c29

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -40,7 +40,7 @@ if uploaded_file is not None:
40
  img = tf.expand_dims(img, axis=0)
41
 
42
  pix2pix = get_model()
43
- st.write("Model Loaded!!! Processing the image...")
44
- pred = array_to_img(pix2pix.predict(img)[0] * 0.5 + 0.5)
45
- st.image(pred)
46
- _ = os.system("rm uploaded_image.png")
 
40
  img = tf.expand_dims(img, axis=0)
41
 
42
  pix2pix = get_model()
43
+ with st.spinner('Processing the image...'):
44
+ pred = array_to_img(pix2pix.predict(img)[0] * 0.5 + 0.5)
45
+ st.image(pred)
46
+ _ = os.system("rm uploaded_image.png")