Spaces:
Running
on
T4
Running
on
T4
eliphatfs
commited on
Commit
·
7c9515a
1
Parent(s):
31070ee
Fix.
Browse files
app.py
CHANGED
@@ -225,7 +225,7 @@ def retrieval_results(results):
|
|
225 |
def demo_retrieval():
|
226 |
with tab_text:
|
227 |
with st.form("rtextform"):
|
228 |
-
k = st.slider("
|
229 |
text = st.text_input("Input Text")
|
230 |
picked_sample = text_examples(samples_index.retrieval_texts)
|
231 |
if st.form_submit_button("Run with Text"):
|
@@ -242,7 +242,7 @@ def demo_retrieval():
|
|
242 |
with tab_img:
|
243 |
submit = False
|
244 |
with st.form("rimgform"):
|
245 |
-
k = st.slider("
|
246 |
pic = st.file_uploader("Upload an Image", key='rimageinput')
|
247 |
if st.form_submit_button("Run with Image"):
|
248 |
submit = True
|
@@ -262,7 +262,7 @@ def demo_retrieval():
|
|
262 |
|
263 |
with tab_pc:
|
264 |
with st.form("rpcform"):
|
265 |
-
k = st.slider("
|
266 |
load_data = misc_utils.input_3d_shape('retpc')
|
267 |
if st.form_submit_button("Run with Shape") or auto_submit('rpcauto'):
|
268 |
pc = load_data(prog)
|
|
|
225 |
def demo_retrieval():
|
226 |
with tab_text:
|
227 |
with st.form("rtextform"):
|
228 |
+
k = st.slider("Shapes to Retrieve", 1, 100, 16, key='rtext')
|
229 |
text = st.text_input("Input Text")
|
230 |
picked_sample = text_examples(samples_index.retrieval_texts)
|
231 |
if st.form_submit_button("Run with Text"):
|
|
|
242 |
with tab_img:
|
243 |
submit = False
|
244 |
with st.form("rimgform"):
|
245 |
+
k = st.slider("Shapes to Retrieve", 1, 100, 16, key='rimage')
|
246 |
pic = st.file_uploader("Upload an Image", key='rimageinput')
|
247 |
if st.form_submit_button("Run with Image"):
|
248 |
submit = True
|
|
|
262 |
|
263 |
with tab_pc:
|
264 |
with st.form("rpcform"):
|
265 |
+
k = st.slider("Shapes to Retrieve", 1, 100, 16, key='rpc')
|
266 |
load_data = misc_utils.input_3d_shape('retpc')
|
267 |
if st.form_submit_button("Run with Shape") or auto_submit('rpcauto'):
|
268 |
pc = load_data(prog)
|