yangtb24 commited on
Commit
7128420
·
verified ·
1 Parent(s): d7547ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -103,10 +103,7 @@ def refresh_models():
103
  global embedding_models, free_embedding_models
104
 
105
  text_models = get_all_models(FREE_MODEL_TEST_KEY, "chat")
106
- embedding_models = {
107
- sub_type: get_all_models(FREE_MODEL_TEST_KEY, sub_type)
108
- for sub_type in ["embedding", "reranker"]
109
- }
110
  free_text_models = []
111
  free_embedding_models = []
112
 
 
103
  global embedding_models, free_embedding_models
104
 
105
  text_models = get_all_models(FREE_MODEL_TEST_KEY, "chat")
106
+ embedding_list = get_all_models(FREE_MODEL_TEST_KEY, "embedding") + get_all_models(FREE_MODEL_TEST_KEY, "reranker")
 
 
 
107
  free_text_models = []
108
  free_embedding_models = []
109