Fixed obsolete random query call
Browse files
app.py
CHANGED
@@ -236,8 +236,11 @@ if 'xq' not in st.session_state:
|
|
236 |
st.session_state.text_prompts = prompt.split(',') + ['none']
|
237 |
_ = [elem.empty() for elem in start]
|
238 |
t0 = time()
|
239 |
-
matches,
|
240 |
-
st.session_state.
|
|
|
|
|
|
|
241 |
t1 = time()
|
242 |
qtime = (t1-t0) * 1000
|
243 |
elif prompt_xq or upld_btn:
|
|
|
236 |
st.session_state.text_prompts = prompt.split(',') + ['none']
|
237 |
_ = [elem.empty() for elem in start]
|
238 |
t0 = time()
|
239 |
+
st.session_state.matches, \
|
240 |
+
st.session_state.img_matches, \
|
241 |
+
st.session_state.side_matches, \
|
242 |
+
st.session_state.o_matches = query(
|
243 |
+
st.session_state.xq, st.session_state.meta)
|
244 |
t1 = time()
|
245 |
qtime = (t1-t0) * 1000
|
246 |
elif prompt_xq or upld_btn:
|