Spaces:
Running
Running
Upload app.py
Browse files
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.
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
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")
|