winfred2027 commited on
Commit
fb3c1ff
·
verified ·
1 Parent(s): 1499e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -235,7 +235,15 @@ try:
235
  if st.sidebar.button("submit"):
236
  classification_custom(load_data, cats)
237
  elif task == "Cross-modal retrieval":
238
- model_retrieval = load_tripletmix('tripletmix-pointbert-all-objaverse')
 
 
 
 
 
 
 
 
239
  input_mode = st.sidebar.selectbox(
240
  'Choose an input modality',
241
  ("Point Cloud", "Image", "Text")
 
235
  if st.sidebar.button("submit"):
236
  classification_custom(load_data, cats)
237
  elif task == "Cross-modal retrieval":
238
+ #model_retrieval = load_tripletmix('tripletmix-pointbert-all-objaverse')
239
+ model_name = st.sidebar.selectbox(
240
+ 'Model Selection',
241
+ ("pb-Mix", "pb")
242
+ )
243
+ if model_name == "pb-Mix":
244
+ model_retrieval = load_tripletmix('tripletmix-pointbert-all-objaverse')
245
+ elif model_name == "pb":
246
+ model_retrieval = load_openshape('openshape-pointbert-vitg14-rgb')
247
  input_mode = st.sidebar.selectbox(
248
  'Choose an input modality',
249
  ("Point Cloud", "Image", "Text")