NEXAS commited on
Commit
789107b
·
verified ·
1 Parent(s): a11e1e7

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -70,7 +70,7 @@ query_file = st.file_uploader("Choose a query image", type=['png', 'jpg', 'jpeg'
70
  if query_file is not None:
71
  query_img = Image.open(query_file)
72
  st.image(query_img, caption="Query Image", width=200)
73
- query_pre = st.session_state.preprocess(query_img).unsqueeze(0).
74
 
75
  to(st.session_state.device)
76
  with torch.no_grad():
 
70
  if query_file is not None:
71
  query_img = Image.open(query_file)
72
  st.image(query_img, caption="Query Image", width=200)
73
+ query_pre = st.session_state.preprocess(query_img).unsqueeze(0).to(st.session_state.device)
74
 
75
  to(st.session_state.device)
76
  with torch.no_grad():