Skip to content

Commit

Permalink
Merge pull request #2 from naseemap47/app
Browse files Browse the repository at this point in the history
submit buttom only after updated image
  • Loading branch information
naseemap47 committed Jul 26, 2023
2 parents ce819a4 + 0b7f6ff commit 67ee33b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def single_image_inference(model, img):
img_input = cv2.imdecode(file_bytes, 1)
FRAME_WINDOW.image(img_input, channels='BGR')

if st.button('Submit', use_container_width=True):
st.subheader('Result')
inp = img2tensor(img_input)
out_img = single_image_inference(NAFNet, inp)
st.image(out_img, channels='BGR')
if st.button('Submit', use_container_width=True):
st.subheader('Result')
inp = img2tensor(img_input)
out_img = single_image_inference(NAFNet, inp)
st.image(out_img, channels='BGR')

0 comments on commit 67ee33b

Please sign in to comment.