giannantonio15 commited on
Commit
ef09d22
1 Parent(s): 3cc2a51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -155,14 +155,14 @@ def main():
155
  index = VectorStoreIndex.from_vector_store(
156
  vector_store, storage_context=storage_context
157
  )
158
-
159
- select_initial_collection()
160
-
161
 
162
  retriever = VectorIndexRetriever(index=index, similarity_top_k=3, vector_store_query_mode="hybrid", embed_model=embed_model, alpha=0.5)
163
 
164
  current_collection = "BANDI_SISTEMA_PUGLIA"
165
  return "collezione settata"
 
 
 
166
 
167
  def select_collection(evt: gr.SelectData):
168
  global current_collection
 
155
  index = VectorStoreIndex.from_vector_store(
156
  vector_store, storage_context=storage_context
157
  )
 
 
 
158
 
159
  retriever = VectorIndexRetriever(index=index, similarity_top_k=3, vector_store_query_mode="hybrid", embed_model=embed_model, alpha=0.5)
160
 
161
  current_collection = "BANDI_SISTEMA_PUGLIA"
162
  return "collezione settata"
163
+
164
+ select_initial_collection()
165
+
166
 
167
  def select_collection(evt: gr.SelectData):
168
  global current_collection